/* ============================================================
   AUTH PAGE CSS — Elite Premium Version
   ============================================================ */

/* ── Base Layout ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 480px;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

/* Ambient background orbs */
.auth-page::before {
  content: '';
  position: fixed;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.07) 0%, transparent 65%);
  top: -200px; left: -200px;
  pointer-events: none; z-index: 0;
  animation: orbFloat1 18s ease-in-out infinite;
}
.auth-page::after {
  content: '';
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.05) 0%, transparent 65%);
  bottom: -150px; right: -150px;
  pointer-events: none; z-index: 0;
  animation: orbFloat2 22s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(40px, 30px); }
  66%       { transform: translate(-20px, 50px); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-50px, -30px); }
}

/* ── Left panel — Branding ───────────────────────────────────── */
.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.auth-brand::after {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.1) 0%, transparent 65%);
  top: -120px; left: -120px;
  pointer-events: none;
}

.auth-brand-logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-brand-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 28px rgba(59,130,246,.45), 0 4px 16px rgba(0,0,0,.3);
  flex-shrink: 0;
  animation: iconGlow 3s ease-in-out infinite alternate;
}
@keyframes iconGlow {
  from { box-shadow: 0 0 20px rgba(59,130,246,.35), 0 4px 16px rgba(0,0,0,.3); }
  to   { box-shadow: 0 0 40px rgba(59,130,246,.6),  0 4px 16px rgba(0,0,0,.3); }
}

.auth-brand-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.auth-brand-tagline {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.auth-brand-hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}

.auth-brand-hero h1 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.auth-brand-hero h1 span {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-brand-hero p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.auth-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,.028);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s;
}
.auth-feature:hover {
  background: rgba(59,130,246,.06);
  border-color: rgba(59,130,246,.2);
}

.auth-feature-dot {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .9rem;
}

.auth-feature-text {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.4;
}

.auth-brand-footer {
  position: relative;
  z-index: 1;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── Right panel — Form ──────────────────────────────────────── */
.auth-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(30,41,59,.85);
  border-left: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.auth-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
}

.auth-form-wrap {
  width: 100%;
  max-width: 370px;
  animation: slideUp .4s ease;
}

.auth-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form .form-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}

.auth-form .form-input {
  background: rgba(15,23,42,.6);
  border-color: rgba(148,163,184,.12);
  padding: 12px 16px 12px 44px;
}
.auth-form .form-input:hover {
  border-color: rgba(148,163,184,.22);
  background: rgba(15,23,42,.75);
}
.auth-form .form-input:focus {
  border-color: var(--accent);
  background: rgba(15,23,42,.9);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.auth-form .input-icon-left { left: 14px; }

.auth-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  margin-top: -4px;
}

.auth-remember-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-secondary);
}
.auth-remember-check input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}

.auth-forgot {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  transition: color .15s;
}
.auth-forgot:hover { color: var(--accent); }

.auth-submit {
  margin-top: 4px;
  padding: 13px;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  border: none;
  box-shadow: 0 4px 16px rgba(59,130,246,.4);
  transition: all .2s;
}
.auth-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  box-shadow: 0 6px 24px rgba(59,130,246,.55);
  transform: translateY(-1px);
}
.auth-submit:active { transform: translateY(0); }

.auth-msg {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  display: none;
}
.auth-msg.show {
  display: flex; align-items: flex-start; gap: 10px;
  animation: slideDown .2s ease;
}
.auth-msg-error {
  background: var(--danger-muted);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,.2);
  border-left: 3px solid var(--danger);
}
.auth-msg-success {
  background: var(--success-muted);
  color: var(--success);
  border: 1px solid rgba(34,197,94,.2);
  border-left: 3px solid var(--success);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pass-toggle {
  cursor: pointer;
  transition: color .15s;
}
.pass-toggle:hover { color: var(--accent); }

.auth-footer-note {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(148,163,184,.08);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .auth-page { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-brand { padding: 36px 36px 28px; }
  .auth-brand::after { display: none; }
  .auth-brand-hero { padding: 24px 0 8px; }
  .auth-brand-hero h1 { font-size: 1.75rem; }
  .auth-features { gap: 10px; }
  .auth-panel { border-left: none; border-top: 1px solid rgba(148,163,184,.08); }
}

@media (max-width: 560px) {
  .auth-brand { padding: 24px 20px; }
  .auth-panel { padding: 28px 20px 40px; }
  .auth-features { display: none; }
}
