/* ═══════════════════════════════════════════════════════════════
   LOGIN.CSS — Premium Login Page Redesign
   Dark luxury theme · Gold accents · Glassmorphism
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #c9a84c;
  --gold-light: #dbb85c;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --bg: #080808;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --text: #f0ece4;
  --text-muted: #8a8578;
  --text-dim: #4a4640;
  --border: rgba(255,255,255,0.06);
  --border-gold: rgba(201,168,76,0.25);
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(8,8,8,0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%; max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.01em;
}

.logo-mark { color: var(--gold); font-size: 16px; }

.nav-links { display: flex; gap: 28px; }

.nav-link {
  font-size: 13px; color: var(--text-muted);
  transition: color 0.25s;
  letter-spacing: 0.02em;
}
.nav-link:hover { color: var(--text); }

/* ─── Auth Layout ────────────────────────────────────────────── */
.auth-layout {
  display: flex;
  min-height: 100vh;
}

/* Left Panel — Cinematic */
.auth-left {
  flex: 1.1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 60px 60px;
  background: #080808;
}

.auth-left-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(201,168,76,0.04) 0%, transparent 60%),
    linear-gradient(160deg, #0d0b07 0%, #080808 40%, #060606 100%);
  z-index: 0;
}

/* Animated floating orbs */
.auth-left-bg::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 65%);
  animation: orbFloat 8s ease-in-out infinite alternate;
}

.auth-left-bg::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  bottom: 60px; left: -60px;
  background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 65%);
  animation: orbFloat 10s ease-in-out 2s infinite alternate-reverse;
}

.auth-left-content {
  position: relative;
  z-index: 2;
  max-width: 440px;
}

.auth-left-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.8;
}

.auth-left-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.auth-left-title em {
  font-style: italic;
  color: var(--gold);
  display: block;
}

.auth-left-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
  max-width: 360px;
}

/* Decorative floating stars */
.auth-decor {
  position: absolute;
  bottom: 40px;
  left: 60px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.3;
}

.auth-decor-line {
  width: 48px;
  height: 1px;
  background: var(--gold);
}

.auth-decor-text {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Right Panel */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 60px 60px;
  background: var(--bg);
  border-left: 1px solid var(--border);
}

.auth-form-container {
  width: 100%;
  max-width: 400px;
}

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.auth-subtitle strong { color: var(--gold); }

/* ─── Google Button ──────────────────────────────────────────── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-google::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-google:hover {
  border-color: rgba(255,255,255,0.12);
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.btn-google:hover::before { opacity: 1; }

/* ─── Divider ────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider span {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── Form ───────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-group input {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: all 0.25s ease;
}

.form-group input::placeholder { color: var(--text-dim); }

.form-group input:focus {
  border-color: var(--border-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.07);
  background: #131313;
}

.form-error {
  color: #e05555;
  font-size: 13px;
  margin-bottom: 16px;
  min-height: 20px;
  line-height: 1.5;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.3);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-full {
  width: 100%;
  padding: 14px;
  font-size: 14px;
  border-radius: var(--radius);
}

.btn-loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(10,10,10,0.2);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ─── OTP Step ────────────────────────────────────────────────── */
.otp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.otp-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.5s ease-in-out infinite;
}

/* ─── OTP Inputs ─────────────────────────────────────────────── */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.otp-box {
  width: 54px;
  height: 62px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  outline: none;
  transition: all 0.25s ease;
  caret-color: var(--gold);
}

.otp-box:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1), 0 0 20px rgba(201,168,76,0.06);
  background: #131313;
  transform: translateY(-2px);
}

.otp-box:not(:placeholder-shown) {
  border-color: var(--border-gold);
  color: var(--gold);
}

/* ─── Footer Links ───────────────────────────────────────────── */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-footer a,
.link-btn {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201,168,76,0.4);
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.auth-footer a:hover,
.link-btn:hover {
  color: var(--gold-light);
  text-decoration-color: var(--gold-light);
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(20px, -30px) scale(1.08); }
}

.auth-step {
  animation: stepIn 0.35s cubic-bezier(0.4,0,0.2,1);
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-left { display: none; }
  .auth-right {
    padding: 90px 28px 48px;
    border-left: none;
  }
}

@media (max-width: 480px) {
  .navbar { padding: 0 20px; }
  .otp-box { width: 44px; height: 52px; font-size: 18px; gap: 7px; }
  .otp-inputs { gap: 7px; }
}
