/* ── Login Screen ─────────────────────────────────────────────────── */
.screen-login {
  display: none;
  flex: 1;
  overflow: hidden;
}
.screen-login.active {
  display: flex;
  align-items: stretch;
}

/* Left Panel — visual */
.login-left {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
}
.login-left-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(140, 50, 70, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 20% 80%, rgba(100, 30, 50, 0.12) 0%, transparent 60%),
    linear-gradient(160deg, var(--bg2) 0%, var(--bg) 100%);
}

/* Floating silhouettes */
.silhouettes {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.sil-group {
  position: relative;
  width: 360px; height: 440px;
  margin-top: -40px;
}
.sil {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rose-12);
}
.sil-1 {
  width: 190px; height: 280px;
  top: 60px; left: 0;
  background: var(--bg2);
  transform: rotate(-4deg);
  animation: floatA 6s ease-in-out infinite;
  z-index: 2;
}
.sil-2 {
  width: 175px; height: 260px;
  top: 30px; right: 0;
  background: var(--bg2);
  transform: rotate(3deg);
  animation: floatB 7s ease-in-out infinite;
  z-index: 1;
}
.sil-3 {
  width: 160px; height: 240px;
  bottom: 0; left: 50%;
  transform: translateX(-50%) rotate(1deg);
  background: var(--bg2);
  animation: floatC 8s ease-in-out infinite;
  z-index: 3;
}
.sil-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
}

@keyframes floatA {
  0%, 100% { transform: rotate(-4deg) translateY(0) }
  50% { transform: rotate(-4deg) translateY(-12px) }
}
@keyframes floatB {
  0%, 100% { transform: rotate(3deg) translateY(0) }
  50% { transform: rotate(3deg) translateY(-8px) }
}
@keyframes floatC {
  0%, 100% { transform: translateX(-50%) rotate(1deg) translateY(0) }
  50% { transform: translateX(-50%) rotate(1deg) translateY(-10px) }
}

.login-left-content { position: relative; z-index: 10 }
.login-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  animation: fadeUp 0.8s ease forwards; opacity: 0; animation-delay: 0.3s;
}
.login-eyebrow-line { width: 28px; height: 1px; background: var(--rose-dim) }
.login-eyebrow-text {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rose-dim);
}
.login-headline {
  font-family: var(--ff-display);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 300; line-height: 1.05;
  color: var(--cream);
  margin-bottom: 16px;
  animation: fadeUp 0.8s ease forwards; opacity: 0; animation-delay: 0.45s;
}
.login-headline em { color: var(--rose); font-style: italic; display: block }
.login-sub {
  font-size: 14px; color: var(--muted); line-height: 1.7;
  max-width: 320px;
  animation: fadeUp 0.8s ease forwards; opacity: 0; animation-delay: 0.6s;
}
.trust-row {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 24px;
  animation: fadeUp 0.8s ease forwards; opacity: 0; animation-delay: 0.75s;
}
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted2) }
.trust-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--rose-dim); flex-shrink: 0 }

/* Right Panel — auth form */
.login-right {
  width: 420px; flex-shrink: 0;
  background: var(--bg);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 52px 44px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}
.login-right::-webkit-scrollbar { display: none }
.login-right::before {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rose-04) 0%, transparent 70%);
  pointer-events: none;
}

.auth-logo {
  font-family: var(--ff-display);
  font-size: 26px; font-weight: 400;
  color: var(--cream);
  margin-bottom: 36px;
  flex-shrink: 0;
  text-align: center;
  animation: fadeUp 0.7s ease forwards; opacity: 0; animation-delay: 0.2s;
}
.auth-logo span { color: var(--rose); font-style: italic }
.auth-logo-icon { height: 36px; width: 36px; vertical-align: middle; margin-right: 8px; border-radius: 50%; }

.auth-tabs {
  display: flex;
  background: var(--cream-04);
  border: 1px solid var(--border2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
  flex-shrink: 0;
  animation: fadeUp 0.7s ease forwards; opacity: 0; animation-delay: 0.3s;
}
.auth-tab {
  flex: 1; padding: 9px;
  font-size: 13px; font-family: var(--ff-body);
  text-align: center; cursor: pointer;
  border: none; background: transparent;
  color: var(--muted); transition: all 0.2s;
}
.auth-tab.active {
  background: var(--rose-bg);
  color: var(--cream);
}

.auth-form {
  display: flex; flex-direction: column; gap: 12px;
  animation: fadeUp 0.7s ease forwards; opacity: 0; animation-delay: 0.4s;
}

.register-name { display: none }
.register-name.visible { display: flex; flex-direction: column; gap: 6px }

.forgot-link {
  font-size: 11px; color: var(--muted2);
  text-align: right; cursor: pointer;
  margin-top: -4px; transition: color 0.15s;
  align-self: flex-end;
}
.forgot-link:hover { color: var(--rose) }

.submit-btn {
  width: 100%; padding: 12px;
  border-radius: 10px;
  background: var(--rose); color: #fff;
  border: none; font-family: var(--ff-body);
  font-size: 14px; font-weight: 400;
  cursor: pointer; transition: all 0.2s;
  margin-top: 4px;
  position: relative; overflow: hidden;
}
.submit-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.2s;
}
.submit-btn:hover { background: var(--rose-hover) }
.submit-btn:hover::after { background: rgba(255, 255, 255, 0.04) }
.submit-btn:active { transform: scale(0.99) }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed }

/* Divider */
.or-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0 }
.or-line { flex: 1; height: 1px; background: var(--border2) }
.or-text { font-size: 11px; color: var(--muted2); letter-spacing: 0.06em }

/* Google button */
.google-btn {
  width: 100%; padding: 11px 14px;
  border-radius: 10px;
  background: var(--cream-04);
  border: 1px solid var(--border2);
  color: var(--cream);
  font-family: var(--ff-body);
  font-size: 13px; font-weight: 400;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.google-btn:hover {
  background: var(--cream-08);
  border-color: rgba(240, 232, 224, 0.14);
}
.google-btn:active { transform: scale(0.99) }
.google-icon { width: 18px; height: 18px; flex-shrink: 0 }

/* Terms */
.terms-note {
  font-size: 11px; color: var(--muted2);
  text-align: center; line-height: 1.6;
  margin-top: 16px;
  animation: fadeUp 0.7s ease forwards; opacity: 0; animation-delay: 0.55s;
}
.terms-note a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--muted2) }
.terms-note a:hover { color: var(--cream) }

/* Terms checkbox (register mode) */
.terms-check {
  margin-top: 16px;
  animation: fadeUp 0.7s ease forwards; opacity: 0; animation-delay: 0.55s;
}
.terms-label {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--muted); line-height: 1.5;
  cursor: pointer;
}
.terms-label input[type="checkbox"] {
  margin-top: 2px; flex-shrink: 0;
  accent-color: var(--rose);
}
.terms-label a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--muted2) }
.terms-label a:hover { color: var(--cream) }
.terms-label strong { color: var(--cream); font-weight: 500 }

/* Password strength */
.pw-strength { display: flex; gap: 4px; margin-top: 6px }
.pw-bar { flex: 1; height: 2px; border-radius: 1px; background: var(--border2); transition: background 0.3s }
.pw-bar.weak { background: var(--red) }
.pw-bar.fair { background: var(--yellow) }
.pw-bar.strong { background: var(--green) }

/* ── Verification / Reset Views ───────────────────────────────────── */
.verify-header { text-align: center; margin-bottom: 8px }
.verify-icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--rose-08);
  color: var(--rose);
}
.verify-icon svg { width: 24px; height: 24px }
.verify-icon--warn { background: rgba(224, 160, 60, 0.12); color: #e0a03c }
.verify-title {
  font-family: var(--ff-display);
  font-size: 20px; font-weight: 400;
  color: var(--cream); margin-bottom: 6px;
}
.verify-sub {
  font-size: 13px; color: var(--muted);
  line-height: 1.5;
}

.verify-code-input {
  text-align: center;
  font-size: 28px;
  letter-spacing: 10px;
  font-weight: 600;
  padding: 14px;
  font-family: var(--ff-body);
}

.verify-resend {
  text-align: center;
  margin-top: 4px;
}
.verify-resend-link {
  font-size: 12px;
  color: var(--rose-dim);
  cursor: pointer;
  transition: color 0.15s;
}
.verify-resend-link:hover { color: var(--rose) }
.verify-resend-link.disabled {
  color: var(--muted2);
  cursor: default;
  pointer-events: none;
}

.verify-back-link {
  text-align: center;
  font-size: 12px;
  color: var(--muted2);
  cursor: pointer;
  margin-top: 8px;
  transition: color 0.15s;
}
.verify-back-link:hover { color: var(--cream) }

/* Delete modal code input */
.delete-code-input {
  text-align: center;
  font-size: 24px;
  letter-spacing: 8px;
  font-weight: 600;
  padding: 12px;
  margin: 12px 0 4px;
  font-family: var(--ff-body);
}

/* Error state */
.form-input.error { border-color: rgba(239, 68, 68, 0.5) }
.form-error { font-size: 11px; color: var(--red); margin-top: 2px }
.auth-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid var(--red-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px; color: var(--red);
  text-align: center;
  flex-shrink: 0;
  margin-bottom: 4px;
}

/* Per-field error indicator */
.form-group.has-field-error { position: relative }
.form-group.has-field-error .form-input { border-color: rgba(239, 68, 68, 0.5) }
.field-error-icon {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 22px;
  height: 22px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  line-height: 1;
}
