/* ==========================================================================
   AESTIA 3D — LOGIN PAGE
   Premium split-screen, mirrored from register.css with unique accents
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-size: 16px; height: 100%; }

:root {
  --rose-glow:   rgba(212, 96, 126, 0.25);
  --muted:       #8a5060;
  --dark-bg:     #0e0509;
  --dark-mid:    #1a0b12;
  --transition:  all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
  font-family: 'Jost', sans-serif;
  background: var(--dark-bg);
  color: var(--ink);
  min-height: 100vh;
  height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

@media (pointer: coarse) {  }

/* ── GRAIN ──────────────────────────────────────── */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 800;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: .55;
}

/* ── LAYOUT ─────────────────────────────────────── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════
   LEFT — BRAND PANEL
   ═══════════════════════════════════════════════════ */
.brand-panel {
  position: relative;
  background: var(--dark-mid);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 50px;
}

/* Tech grid background */
.tech-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(212,96,126,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,96,126,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* Scan lines */
.scan-lines {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(212,96,126,0.025) 3px, rgba(212,96,126,0.025) 4px
  );
}

/* Ambient orbs */
.orb { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(80px); opacity: 0.3; }
.orb-1 { width: 350px; height: 350px; background: radial-gradient(circle, #d4607e 0%, transparent 70%); top: -80px; right: -60px; animation: driftOrb1 14s ease-in-out infinite alternate; }
.orb-2 { width: 280px; height: 280px; background: radial-gradient(circle, #a83a58 0%, transparent 70%); bottom: -60px; left: -50px; animation: driftOrb2 10s ease-in-out infinite alternate; }
@keyframes driftOrb1 { to { transform: translate(-40px, 70px) scale(1.1); } }
@keyframes driftOrb2 { to { transform: translate(50px, -50px) scale(1.15); } }

/* Floating icons */
.floating-objects { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.obj { position: absolute; color: rgba(212,96,126,0.15); animation: infinite alternate; }
.obj-cube    { top: 8%;  left: 5%;  font-size: 2.4rem; color: rgba(212,96,126,.18); animation: fl1 7s ease-in-out infinite alternate; }
.obj-layer   { top: 20%; right: 7%; font-size: 1.5rem; animation: fl2 9s ease-in-out infinite alternate; }
.obj-bolt    { top: 60%; left: 10%; font-size: 1.8rem; animation: fl3 8s ease-in-out infinite alternate; }
.obj-gear    { bottom: 15%; right: 8%; font-size: 1.6rem; color: rgba(212,96,126,.12); animation: fl4 11s ease-in-out infinite alternate; }
.obj-diamond { bottom: 35%; left: 6%; font-size: 1.3rem; animation: fl5 10s ease-in-out infinite alternate; }
@keyframes fl1 { from { transform: translate(0,0) rotate(0deg); } to { transform: translate(10px,-15px) rotate(18deg); } }
@keyframes fl2 { from { transform: translate(0,0) rotate(0deg); } to { transform: translate(-8px,12px) rotate(-10deg); } }
@keyframes fl3 { from { transform: translate(0,0);               } to { transform: translate(6px,-10px); } }
@keyframes fl4 { from { transform: translate(0,0) rotate(0deg); } to { transform: translate(-12px,8px) rotate(-360deg); } }
@keyframes fl5 { from { transform: translate(0,0) scale(1);     } to { transform: translate(8px,18px) scale(1.15); } }

/* Brand content */
.brand-content { position: relative; z-index: 3; max-width: 400px; }

.brand-logo {
  display: inline-block; font-family: 'Cormorant', serif;
  font-size: 2.4rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; text-decoration: none; line-height: 1; margin-bottom: 6px;
}
.brand-logo .aes  { color: #f5e0e8; }
.brand-logo .tia  { color: var(--rose); }
.brand-logo .three { color: var(--blush); font-style: italic; }

.brand-sub {
  font-family: 'Jost', sans-serif; font-size: .7rem;
  letter-spacing: .45em; text-transform: uppercase;
  color: var(--blush); opacity: 0.7; margin-bottom: 32px;
}

.brand-divider { width: 48px; height: 1px; background: linear-gradient(90deg, var(--rose), transparent); margin-bottom: 28px; }

.brand-headline {
  font-family: 'Cormorant', serif;
  font-size: clamp(3rem, 4.5vw, 4.5rem);
  font-weight: 300; line-height: 1.1; color: #f5e0e8; margin-bottom: 18px;
}
.brand-headline em { color: var(--rose); font-style: italic; font-weight: 400; }

.brand-desc {
  font-size: .9rem; line-height: 1.7;
  color: rgba(245,224,232,0.55); margin-bottom: 40px;
}

/* Stats strip removed */

/* ═══════════════════════════════════════════════════
   RIGHT — FORM PANEL
   ═══════════════════════════════════════════════════ */
.form-panel {
  background: var(--snow);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 40px; position: relative;
}

/* Ambient inner glow */
.form-panel::before {
  content: ''; position: absolute; bottom: -100px; left: -80px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(212,96,126,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.form-wrapper { width: 100%; max-width: 420px; }

/* Mobile logo */
.mobile-logo {
  display: none; font-family: 'Cormorant', serif;
  font-size: 2rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; text-decoration: none; margin-bottom: 28px;
}
.mobile-logo .aes  { color: var(--ink); }
.mobile-logo .tia  { color: var(--rose); }
.mobile-logo .three { color: var(--blush); font-style: italic; }

/* Form header */
.form-eyebrow {
  font-size: .65rem; letter-spacing: .35em; text-transform: uppercase;
  font-weight: 600; color: var(--rose); margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.form-eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--rose); }

.form-title { font-family: 'Cormorant', serif; font-size: 3rem; font-weight: 300; color: var(--ink); margin-bottom: 6px; }
.form-subtitle { font-size: .9rem; color: var(--muted); margin-bottom: 32px; }

/* Google Button */
.google-btn {
  width: 100%; padding: 14px 20px;
  background: white; border: 1.5px solid var(--border-soft);
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; gap: 12px; font-size: .95rem;
  font-weight: 500; color: var(--ink); transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05); margin-bottom: 20px;
}
.google-btn:hover { border-color: var(--rose); box-shadow: 0 4px 20px var(--rose-glow); transform: translateY(-2px); }
.google-icon { width: 20px; height: 20px; }

/* OR Divider */
.or-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.or-divider span { flex: 1; height: 1px; background: var(--border-soft); }
.or-divider p { font-size: .8rem; color: var(--muted); white-space: nowrap; }

/* Email provider badges */
.email-providers-row { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.email-providers-row span {
  font-size: .75rem; padding: 5px 12px; border-radius: 20px;
  border: 1px solid var(--border-soft); color: var(--muted);
  background: var(--petal); display: flex; align-items: center; gap: 5px;
}

/* Fields */
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--warm); margin-bottom: 7px;
}

.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 16px; color: var(--blush); font-size: .95rem; pointer-events: none; transition: color 0.3s; }
.input-wrap:focus-within .input-icon { color: var(--rose); }

.input-wrap input {
  width: 100%; padding: 14px 48px;
  background: rgba(255,255,255,0.9);
  border: 1.5px solid var(--border-soft); border-radius: 12px;
  font-family: 'Jost', sans-serif; font-size: .95rem; color: var(--ink);
  outline: none; transition: var(--transition);
}
.input-wrap input::placeholder { color: rgba(90,48,64,0.35); }
.input-wrap input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(212,96,126,0.12); background: white; }

/* Toggle password */
.toggle-password { position: absolute; right: 14px; background: none; border: none; color: var(--blush); font-size: .9rem; padding: 6px; transition: color 0.3s; }
.toggle-password:hover { color: var(--rose); }

/* Forgot link */
.forgot-row { display: flex; justify-content: flex-end; margin: -8px 0 20px; }
.forgot-link { font-size: .82rem; color: var(--rose); font-weight: 600; text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }

/* Submit button */
.submit-btn {
  width: 100%; padding: 16px 24px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: white; border: none; border-radius: 12px;
  font-family: 'Jost', sans-serif; font-size: 1rem;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 28px rgba(212,96,126,0.35);
  transition: var(--transition); margin-bottom: 20px;
}
.submit-btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(212,96,126,0.45); }
.submit-btn:disabled { background: var(--muted); box-shadow: none; cursor: not-allowed; }
.hidden { display: none !important; }

/* Register link */
.register-link { text-align: center; font-size: .9rem; color: var(--muted); }
.register-link a { color: var(--rose); font-weight: 600; }
.register-link a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .split-layout { grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .form-panel { padding: 48px 24px; min-height: 100vh; }
  .mobile-logo { display: block; }
  .form-title { font-size: 2.6rem; }
}
@media (max-width: 480px) {
  .form-panel { padding: 36px 18px; }
  .form-title { font-size: 2.2rem; }
  .stat-strip { gap: 16px; padding: 16px; }
}