/* Vasu Infra — Auth pages shared styles */
:root {
  --obsidian: #070708;
  --navy-deep: #0B1A3A;
  --navy: #0F2350;
  --royal: #1E3A8A;
  --gold: #C9A24C;
  --gold-bright: #F0D78C;
  --cream: #EDE6D3;
  --line: rgba(201, 162, 76, 0.25);
  --line-strong: rgba(201, 162, 76, 0.55);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter Tight', 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--cream);
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(30, 58, 138, 0.55), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(201, 162, 76, 0.18), transparent 60%),
    linear-gradient(180deg, #05060a 0%, #070b18 60%, #04050a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  overflow-x: hidden;
}

/* subtle gold particles via repeating gradient */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(rgba(201, 162, 76, 0.08) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 38px 38px, 22px 22px;
  background-position: 0 0, 11px 11px;
  pointer-events: none;
  z-index: 0;
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: linear-gradient(160deg, rgba(11, 26, 58, 0.85), rgba(7, 7, 8, 0.92));
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(201, 162, 76, 0.06) inset;
  backdrop-filter: blur(10px);
}

.auth-aside {
  position: relative;
  padding: 56px 48px;
  background:
    linear-gradient(160deg, rgba(7, 7, 8, 0.55), rgba(11, 26, 58, 0.75)),
    url('../assets/dholera-skyline.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
}
.auth-aside::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.auth-aside > * { position: relative; z-index: 1; }

.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--cream); text-decoration: none;
}
.brand-logo {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  display: grid; place-items: center;
  font-family: 'Cinzel', serif; font-weight: 700; color: #0a0a0a;
  box-shadow: 0 6px 20px rgba(201, 162, 76, 0.35);
}
.brand-name {
  font-family: 'Cinzel', serif;
  font-size: 20px; letter-spacing: 0.14em; text-transform: uppercase;
}
.brand-name span { color: var(--gold-bright); }

.aside-copy h2 {
  font-family: 'Cormorant Garamond', 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  margin: 0 0 14px;
  color: #fff;
}
.aside-copy h2 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.aside-copy p {
  color: rgba(237, 230, 211, 0.78);
  font-size: 15px; line-height: 1.7; margin: 0 0 22px;
  max-width: 420px;
}
.aside-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.aside-stats div .num {
  font-family: 'Cinzel', serif; font-size: 22px; color: var(--gold-bright);
}
.aside-stats div .lbl {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(237, 230, 211, 0.6);
}

.auth-main {
  padding: 56px 52px;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, rgba(7,7,8,0.4), rgba(7,7,8,0.7));
}
.auth-eyebrow {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.auth-title {
  font-family: 'Cinzel', serif;
  font-size: 30px; letter-spacing: 0.04em; margin: 0 0 6px; color: #fff;
}
.auth-sub {
  color: rgba(237, 230, 211, 0.65);
  font-size: 14px; margin: 0 0 28px;
}

.form-label {
  display: block;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(237, 230, 211, 0.7);
  margin-bottom: 8px;
}
.form-control,
.form-select,
.input-group .form-control {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
}
.form-control::placeholder { color: rgba(237,230,211, 0.35); }
.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 4px rgba(201, 162, 76, 0.12);
}
.form-select option { background: #0b0f1a; color: var(--cream); }

.mb-3 { margin-bottom: 18px; }
.input-group { position: relative; }

.btn-login {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 18px;
  margin-top: 6px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(201, 162, 76, 0.28);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-login:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 16px 40px rgba(201,162,76,0.4); }
.btn-login:active { transform: translateY(0); }

.w-100 { width: 100%; }

.auth-foot {
  margin-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  color: rgba(237, 230, 211, 0.55);
}
.auth-foot a {
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.auth-foot a:hover { border-color: var(--gold-bright); }

.divider {
  display: flex; align-items: center; gap: 12px;
  color: rgba(237,230,211,0.4);
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  margin: 20px 0;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.back-home {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(237,230,211,0.6); text-decoration: none; font-size: 13px;
  margin-bottom: 28px;
  transition: color .2s;
}
.back-home:hover { color: var(--gold-bright); }

/* Register two-column field grid */
.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px;
}
.grid-2 .mb-3 { margin-bottom: 0; }

#ref_status { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--gold-bright); }

/* Responsive */
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; max-width: 540px; }
  .auth-aside { min-height: 220px; padding: 36px 32px; display: none; }
  .auth-aside .aside-stats { display: none; }
  .auth-main { padding: 40px 28px; }
  .grid-2 { grid-template-columns: 1fr; }
}