/* ═══════════════════════════════════════════════════
   AUTH.CSS — Uncle AI
   Shared styles for login.html + signup.html
   ═══════════════════════════════════════════════════ */

/* ── PAGE LAYOUT (centered card) ── */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ── CARD ── */
.card { max-width: 400px; }

/* ── TEXT LOGO ── */
.logo { font-size: 18px; font-weight: 700; color: #4A3728; margin-bottom: 24px; }
.logo span { color: #D4845A; }

/* ── HEADINGS ── */
h1 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.subtitle { font-size: 14px; color: #6B6B6B; margin-bottom: 28px; }

/* ── FIELDS ── */
.field { margin-bottom: 14px; }
label { display: block; font-size: 13px; font-weight: 500; color: #4A4A4A; margin-bottom: 5px; }
input, select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #DEDEDE;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #1A1A1A;
  background: white;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, select:focus { outline: none; border-color: #4A3728; }

/* ── SUBMIT BUTTON ── */
.btn-submit {
  width: 100%;
  padding: 13px;
  background: #4A3728;
  color: #FDF6EE;
  border: none;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.15s;
  font-family: 'Inter', sans-serif;
}
.btn-submit:hover { background: #332519; }
.btn-submit:disabled { background: #B0B0A8; cursor: not-allowed; }

/* ── FOOTER LINK ── */
.footer-link { text-align: center; margin-top: 20px; font-size: 13px; color: #6B6B6B; }
.footer-link a { color: #4A3728; font-weight: 500; text-decoration: none; }
.footer-link a:hover { text-decoration: underline; }

/* ── FORGOT LINK (login.html) ── */
.forgot-link { text-align: right; margin-top: 4px; }
.forgot-link a { font-size: 12px; color: #6B6B6B; text-decoration: none; }
.forgot-link a:hover { color: #4A3728; text-decoration: underline; }

/* ── DIVIDER (signup.html) ── */
.divider { border: none; border-top: 1px solid #E8E8E8; margin: 20px 0; }

/* ── TOS SECTION (signup.html) ── */
.tos-section { margin-top: 20px; }
.tos-box {
  border: 1.5px solid #DEDEDE;
  border-radius: 8px;
  padding: 14px;
  height: 160px;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.6;
  color: #4A4A4A;
  background: #FAFAFA;
  margin-bottom: 12px;
}
.tos-box h3 { font-size: 13px; font-weight: 700; color: #1A1A1A; margin-bottom: 8px; }
.tos-box h4 { font-size: 12px; font-weight: 600; color: #333; margin: 10px 0 4px; }
.tos-box p { margin-bottom: 6px; }
.tos-placeholder-note {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: #F59E0B; background: #FFFBF0;
  border: 1px solid #FFE082; border-radius: 4px;
  padding: 2px 6px; display: inline-block; margin-bottom: 10px;
}
.tos-check-row {
  display: flex; align-items: flex-start;
  gap: 10px; font-size: 13px;
  color: #4A4A4A; cursor: pointer;
}
.tos-check-row input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px;
  margin-top: 1px; accent-color: #1A7A6D;
  cursor: pointer; appearance: auto;
  -webkit-appearance: checkbox;
}

/* ── SIGNUP CARD OVERRIDE ── */
/* signup.html needs wider card than login.html */
.signup-page .card { max-width: 480px; }

/* ── COLLAPSIBLE HOME DETAILS (signup.html) ── */
.home-details {
  margin-top: 14px;
  border: 1px solid #E8E8E8;
  border-radius: 8px;
  padding: 0;
}
.home-details[open] { padding-bottom: 14px; }
.home-details-toggle {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #6B6B6B;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.home-details-toggle::-webkit-details-marker { display: none; }
.home-details-toggle::before {
  content: '\25B8';
  font-size: 11px;
  transition: transform 0.15s;
}
.home-details[open] .home-details-toggle::before { transform: rotate(90deg); }
.home-details[open] .home-details-toggle {
  border-bottom: 1px solid #E8E8E8;
  margin-bottom: 0;
}
.home-details > div { padding-left: 14px; padding-right: 14px; }

/* Tenant invite banner */
.tenant-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #EEF6F4;
  border: 1.5px solid #2D8C6E;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.tenant-banner__icon {
  font-size: 24px;
  flex-shrink: 0;
}
.tenant-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: #1a1a1a;
}
.tenant-banner__text strong {
  font-size: 15px;
  color: #1a6e53;
}
.tenant-banner__text span {
  color: #4b5563;
  font-size: 13px;
}

/* Invite verify status */
.field-hint--valid {
  color: #1a6e53;
  font-weight: 500;
}
.field-hint--error {
  color: #dc2626;
}
