/* =============================================================
   Nidoo — Auth screens (login / register / forgot)
   Mobile-first, centered card on desktop.
   ============================================================= */

/* PWA install banner (shared with mobile.css) */
.pwa-banner {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 16px; right: 16px;
  z-index: 200;
  background: #fff;
  border-radius: 18px;
  padding: 14px 14px 14px 16px;
  box-shadow: 0 16px 40px rgba(46,31,24,0.18), 0 4px 12px rgba(46,31,24,0.08);
  border: 1px solid rgba(46,31,24,0.06);
  display: flex; align-items: center; gap: 12px;
  transform: translateY(calc(100% + 48px));
  transition: transform 380ms cubic-bezier(0.22,1,0.36,1);
}
.pwa-banner.show { transform: translateY(0); }
.pwa-logo {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 12px; overflow: hidden;
  background: #FBF7F0;
  display: flex; align-items: center; justify-content: center;
}
.pwa-logo img { width: 70%; height: 70%; display: block; object-fit: contain; }
.pwa-body { flex: 1; min-width: 0; }
.pwa-ttl { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700; color: #2E1F18; line-height: 1.2; }
.pwa-sub { font-family: 'Manrope', sans-serif; font-size: 11px; color: #8C7B6F; margin-top: 2px; }
.pwa-install {
  background: #C77B5C; color: #fff; border: none; cursor: pointer;
  padding: 9px 14px; border-radius: 999px;
  font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 700;
  flex-shrink: 0; white-space: nowrap;
}
.pwa-install:active { background: #B36A4C; }
.pwa-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: #F4EFE6; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

html, body { margin: 0; padding: 0; background: #FBF7F0; height: 100%; }
body {
  font-family: 'Manrope', sans-serif;
  color: #2E1F18;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 32px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .auth-shell { padding: 48px 24px; justify-content: center; }
  .auth-card {
    background: #fff;
    border: 1px solid rgba(46,31,24,0.08);
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(46,31,24,0.06);
    padding: 36px 36px 28px;
    flex: 0 1 auto;
  }
}

.auth-logo {
  display: flex; justify-content: center;
  padding: 28px 0 0;
}
.auth-logo img { width: 56px; height: 56px; }

.auth-hero {
  padding: 28px 0 8px;
  text-align: center;
}
.auth-hero .eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #C77B5C;
  margin-bottom: 14px;
}
.auth-hero h1 {
  font-family: 'Newsreader', serif;
  font-size: 38px; line-height: 1.1;
  font-weight: 400; letter-spacing: -0.02em;
  color: #2E1F18; margin: 0 0 10px;
}
.auth-hero h1 em { font-style: italic; }
.auth-hero p {
  font-size: 14px; line-height: 1.55;
  color: #5C4A40; margin: 0 auto;
  max-width: 320px;
}

.auth-form { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field > label {
  font-size: 11px; font-weight: 700;
  color: #2E1F18; letter-spacing: 0.08em; text-transform: uppercase;
}
.auth-field .hint, .auth-field .err {
  font-size: 12px;
  display: flex; align-items: center; gap: 6px;
}
.auth-field .hint { color: #8C7B6F; }
.auth-field .err  { color: #8B3A3A; }

.input-wrap {
  position: relative;
  display: flex; align-items: center;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(46,31,24,0.08);
  padding: 12px 14px;
  transition: border-color 160ms cubic-bezier(0.22,1,0.36,1);
}
.input-wrap:focus-within { border: 1.5px solid #C77B5C; padding: 11.5px 13.5px; }
.input-wrap.has-error    { border: 1.5px solid #8B3A3A; padding: 11.5px 13.5px; }
.input-wrap > i.lead { margin-right: 10px; color: #8C7B6F; font-size: 18px; }
.input-wrap input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: 'Manrope', sans-serif; font-size: 15px; color: #2E1F18;
  padding: 0; min-width: 0;
}
.input-wrap input::placeholder { color: #BFB1A3; }
.input-wrap .eye-btn {
  background: transparent; border: none; cursor: pointer;
  padding: 4px; margin-right: -4px; color: #8C7B6F;
  display: inline-flex; align-items: center;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 14px 16px; border-radius: 10px;
  font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; white-space: nowrap;
  transition: transform 160ms cubic-bezier(0.22,1,0.36,1), background-color 160ms cubic-bezier(0.22,1,0.36,1), opacity 220ms ease;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { cursor: default; }
.btn-primary  { background: #C77B5C; color: #fff; box-shadow: 0 1px 2px rgba(46,31,24,0.08); }
.btn-primary:hover  { background: #B36A4C; }
.btn-secondary{ background: #F4EFE6; color: #2E1F18; border: 1px solid rgba(46,31,24,0.08); }
.btn-google   { background: #fff; color: #2E1F18; border: 1px solid rgba(46,31,24,0.16); font-weight: 600; }
.btn-ghost    { background: transparent; color: #5C4A40; }
.dim { opacity: 0.55; }

.or-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 4px 0;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #8C7B6F;
}
.or-divider .line { flex: 1; height: 1px; background: rgba(46,31,24,0.08); }

.row-between { display: flex; align-items: center; justify-content: space-between; }
.checkbox {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: none; cursor: pointer;
  padding: 0; font-size: 13px; color: #5C4A40;
  font-family: inherit;
}
.checkbox .box {
  width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid rgba(46,31,24,0.16);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; flex-shrink: 0;
}
.checkbox.on .box { background: #C77B5C; border-color: #C77B5C; }
.link-btn {
  background: transparent; border: none; cursor: pointer;
  padding: 0; font-size: 13px; font-weight: 600; color: #C77B5C;
  font-family: inherit;
}

.auth-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 13px; color: #8C7B6F;
}
.auth-footer a, .auth-footer .link-btn { color: #C77B5C; font-weight: 600; text-decoration: none; }

.strength-bars { display: flex; gap: 4px; margin-top: 8px; }
.strength-bars .bar {
  flex: 1; height: 4px; border-radius: 999px;
  background: #ECE4D6;
  transition: background 220ms cubic-bezier(0.22,1,0.36,1);
}

.callout-info {
  padding: 14px; border-radius: 10px;
  background: #F8EBD0; border: 1px solid #EFD5A5;
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.5px; color: #5C4A40; line-height: 1.5;
}
.callout-info i { color: #BE8C46; margin-top: 1px; flex-shrink: 0; }

.icon-bubble {
  width: 100px; height: 100px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 8px auto;
  position: relative;
}
.icon-bubble--terracota { background: #F6E5DD; color: #C77B5C; }
.icon-bubble--terracota::before {
  content: ''; position: absolute; inset: 12px; border-radius: 50%;
  background: #E8C2B0;
}
.icon-bubble--terracota i { position: relative; z-index: 1; font-size: 44px; }
.icon-bubble--sage { background: #E5ECE5; }
.icon-bubble--sage .inner {
  width: 76px; height: 76px; border-radius: 50%;
  background: #87A088; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 36px;
}

.success-feedback {
  background: #E5ECE5; border: 1px solid #C5D3C6;
  border-radius: 10px; padding: 12px 14px;
  font-size: 13px; color: #4A6650;
}
.error-feedback {
  background: #F0DBDB; border: 1px solid #D9A8A8;
  border-radius: 10px; padding: 12px 14px;
  font-size: 13px; color: #8B3A3A;
}

.center-block {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 24px;
  padding: 20px 8px;
}
.center-block h1 {
  font-family: 'Newsreader', serif; font-size: 32px; line-height: 1.15;
  font-weight: 400; color: #2E1F18; margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.center-block h1 em { font-style: italic; }
.center-block p {
  font-size: 14px; line-height: 1.55; color: #5C4A40;
  margin: 0 auto; max-width: 300px;
}

.back-link {
  background: transparent; border: none; cursor: pointer;
  font-size: 13px; color: #8C7B6F;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit;
}
