/* ─── Auth drawer ─── */

.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.auth-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.auth-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 51;
  width: min(480px, 100%);
  background: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: -20px 0 80px rgba(11, 18, 32, 0.18);
}

.auth-drawer.open {
  transform: translateX(0);
}

.auth-drawer-inner {
  padding: 28px clamp(22px, 4vw, 36px) 48px;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.auth-brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.04;
  text-decoration: none;
  color: inherit;
}

.auth-brand strong {
  font-size: 17px;
  font-weight: 850;
  color: var(--navy);
}

.auth-brand span {
  margin-top: 2px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-bright);
}

.auth-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
}

.auth-close:hover {
  background: var(--line-soft);
}

.auth-close svg {
  width: 16px;
  height: 16px;
}

/* tabs */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 4px;
  margin-bottom: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.auth-tab {
  padding: 9px 12px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, box-shadow 0.14s;
  white-space: nowrap;
}

.auth-tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(11, 18, 32, 0.1);
}

/* panels */
.auth-panel-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 860;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.auth-panel-subtitle {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.auth-switch {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.auth-switch-btn {
  padding: 0;
  background: none;
  border: 0;
  color: var(--teal);
  font-size: inherit;
  font-weight: 750;
  cursor: pointer;
}

.auth-switch-btn:hover {
  text-decoration: underline;
}

.auth-forgot {
  display: inline-block;
  margin-top: 6px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.auth-forgot:hover {
  text-decoration: underline;
}

/* success state */
.auth-success {
  padding: 32px 8px;
  text-align: center;
}

.auth-success-mark {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 900;
}

.auth-success h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.auth-success p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

/* error state on sign-in */
.auth-error-banner {
  padding: 11px 14px;
  margin-bottom: 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

/* lock body scroll when drawer is open */
body.drawer-open {
  overflow: hidden;
}

/* ─── Nav login button variant ─── */
.btn-nav-login {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-nav-login:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

/* ─── App page (post-login portal) ─── */
.app-hero {
  padding: clamp(64px, 8vw, 108px) 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #111827 0%, #0b1220 100%);
  background-size: 84px 84px, auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 880;
  line-height: 1;
  letter-spacing: -0.01em;
}

.app-hero p {
  max-width: 560px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.6;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(44, 181, 165, 0.16);
  border: 1px solid rgba(44, 181, 165, 0.3);
  border-radius: 999px;
  color: var(--teal-bright);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.app-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
}

.next-steps {
  display: grid;
  gap: 10px;
  margin-top: 0;
  counter-reset: step;
}

.step-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  border-radius: 8px;
  color: var(--teal);
  font-size: 17px;
  font-weight: 900;
}

.step-card h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-user-email {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 650;
}
