/* ============================================================
   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;
}

/* "Download the app" link inside toggle prompt */
.auth-download-link {
  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;
  }
}
