/* ============================================================
   AUTH MODAL — Changed
   Clean centered panel (desktop) / bottom sheet (mobile).
   No phone mockup — Bumble-style minimal layout.
   ============================================================ */

/* ── Overlay ── */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.auth-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Blurred dark backdrop — shadow screen effect */
.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px) saturate(0.7);
  -webkit-backdrop-filter: blur(14px) saturate(0.7);
  cursor: pointer;
}

/* ── Panel ── */
.auth-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 24px;
  padding: 48px 40px 40px;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.36s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.auth-overlay.is-open .auth-panel {
  transform: translateY(0) scale(1);
}

/* ── Close button ── */
.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.4);
  transition: background 0.2s;
  font-family: inherit;
}
.auth-close:hover { background: rgba(0, 0, 0, 0.12); }

/* ── Logo — centered at top ── */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 28px;
}

.auth-logo-icon {
  height: 30px;
  width: auto;
  display: block;
}

.auth-logo-word {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.8px;
  color: #0d160d;
}

/* ── Main view heading ── */
.auth-main-title {
  font-size: 22px;
  font-weight: 800;
  color: #0d160d;
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

/* ── Tagline ── */
.auth-tagline {
  font-size: 14px;
  font-weight: 400;
  color: #0d160d;
  line-height: 1.3;
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: -0.3px;
}

/* ── Views ── */
.auth-view { display: none; }
.auth-view.is-active { display: block; }

/* ── Auth buttons ── */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.14s;
  margin-bottom: 10px;
}
.auth-btn:last-of-type { margin-bottom: 0; }
.auth-btn:hover { opacity: 0.86; }
.auth-btn:active { transform: scale(0.98); }

.auth-btn--apple,
.auth-btn--google { background: #1c1c1e; color: #fff; }
.auth-btn--email  {
  background: transparent;
  color: #0d160d;
  border: 1.5px solid rgba(13, 22, 13, 0.22);
}
.auth-btn--email:hover { border-color: rgba(13, 22, 13, 0.5); opacity: 1; }

.auth-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

/* ── Toggle prompt ── */
.auth-toggle-prompt {
  text-align: center;
  font-size: 12px;
  color: rgba(13, 22, 13, 0.45);
  margin-top: 20px;
  line-height: 1.6;
}

/* "Sign up" link inside toggle prompt */
.auth-download-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: #0b4d24;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.auth-download-link:hover { color: #32FD83; }

/* ── Email view ── */
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 24px;
  font-family: inherit;
  font-size: 13px;
  color: rgba(13, 22, 13, 0.4);
  cursor: pointer;
  transition: color 0.2s;
}
.auth-back:hover { color: #0d160d; }

.auth-view-title {
  font-size: 24px;
  font-weight: 800;
  color: #0d160d;
  letter-spacing: -0.6px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.auth-view-sub {
  font-size: 13px;
  color: rgba(13, 22, 13, 0.45);
  line-height: 1.5;
  margin-bottom: 28px;
}

.auth-field { margin-bottom: 4px; }
.auth-field input {
  width: 100%;
  padding: 15px 0 12px;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(13, 22, 13, 0.16);
  font-family: inherit;
  font-size: 15px;
  color: #0d160d;
  outline: none;
  transition: border-color 0.2s;
}
.auth-field input::placeholder { color: rgba(13, 22, 13, 0.35); }
.auth-field input:focus { border-bottom-color: #0d160d; }

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 24px;
  background: #1c1c1e;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  cursor: pointer;
  margin-top: 28px;
  transition: opacity 0.18s, transform 0.14s;
}
.auth-submit:hover { opacity: 0.88; }
.auth-submit:active { transform: scale(0.98); }
.auth-submit:disabled { opacity: 0.4; pointer-events: none; }
.auth-submit-arrow { font-size: 18px; }

/* ── Forgot password ── */
.auth-forgot {
  display: block;
  text-align: right;
  font-size: 12px;
  color: rgba(13, 22, 13, 0.4);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 8px 0 0;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s;
}
.auth-forgot:hover { color: #0d160d; }


/* ============================================================
   MOBILE — bottom sheet
   ============================================================ */
@media (max-width: 600px) {
  .auth-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .auth-panel {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 36px 28px 48px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.1, 0.64, 1);
  }

  .auth-overlay.is-open .auth-panel {
    transform: translateY(0);
  }

  /* drag handle */
  .auth-panel::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    margin: -20px auto 20px;
  }
}

/* ============================================================
   NEW VIEWS — Sign Up, OTP, Notifications
   ============================================================ */

/* Panel scrolls when content is tall */
.auth-panel {
  max-height: min(720px, 92vh);
  overflow-y: auto;
}

/* ── Checkbox row (TOS) ── */
.auth-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
}
.auth-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #0d160d;
}
.auth-checkbox-row label {
  font-size: 12px;
  color: rgba(13, 22, 13, 0.5);
  line-height: 1.5;
  cursor: pointer;
}
.auth-checkbox-row a { color: #0b4d24; text-decoration: underline; }

/* ── OTP row ── */
.auth-otp-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0 24px;
}
.auth-otp-box {
  width: 42px;
  height: 50px;
  border: 1.5px solid rgba(13, 22, 13, 0.18);
  border-radius: 10px;
  background: #f9faf9;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #0d160d;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.auth-otp-box:focus {
  border-color: #0d160d;
  background: #fff;
}

/* ── Resend link ── */
.auth-resend-row {
  text-align: center;
  margin-top: 16px;
}
.auth-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  color: rgba(13, 22, 13, 0.45);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}
.auth-link-btn:hover { color: #0d160d; }
.auth-link-btn:disabled { opacity: 0.5; pointer-events: none; }

/* ── Notification options ── */
.auth-notif-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.auth-notif-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8f8f6;
  border: 1.5px solid rgba(13, 22, 13, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s;
}
.auth-notif-opt.is-selected { border-color: #0d160d; }
.auth-notif-opt__text {
  font-size: 13px;
  color: rgba(13, 22, 13, 0.55);
  line-height: 1.4;
}
.auth-notif-opt__text strong { color: #0d160d; font-weight: 700; }
.auth-notif-opt__circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(13, 22, 13, 0.18);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.auth-notif-opt.is-selected .auth-notif-opt__circle {
  background: #0d160d;
  border-color: #0d160d;
}
.auth-notif-opt__circle svg { display: none; width: 11px; height: 11px; color: #fff; }
.auth-notif-opt.is-selected .auth-notif-opt__circle svg { display: block; }

/* ── Notifications footer ── */
.auth-notif-footer {
  text-align: center;
  font-size: 11px;
  color: rgba(13, 22, 13, 0.35);
  margin-top: 14px;
  line-height: 1.6;
}
.auth-notif-footer a { color: #0b4d24; text-decoration: underline; }
