:root {
  --navy: #0f3550;
  --navy-2: #1c5a7e;
  --accent: #2a91b8;
  --gold: #e6b13e;
  --ink: #213243;
  --muted: #6b7c8a;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(5, 22, 36, 0.45), 0 3px 10px rgba(5, 22, 36, 0.25);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Sora", var(--font);
}

* { box-sizing: border-box; }
.auth-body {
  margin: 0; min-height: 100vh; display: flex; flex-wrap: wrap; position: relative;
  font-family: var(--font); color: #eaf2f8; overflow: hidden;
  background:
    radial-gradient(1100px 700px at 12% 18%, rgba(42, 145, 184, 0.30), transparent 55%),
    radial-gradient(900px 600px at 90% 85%, rgba(230, 177, 62, 0.18), transparent 55%),
    linear-gradient(135deg, #0a1d2e 0%, #103048 55%, #0c2236 100%);
}
/* soft drifting glow accents (clean deep-space backdrop) */
.auth-body::before {
  content: ""; position: absolute; inset: -15%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(480px 480px at 72% 28%, rgba(42, 145, 184, 0.16), transparent 60%),
    radial-gradient(420px 420px at 18% 75%, rgba(230, 177, 62, 0.12), transparent 60%);
  filter: blur(6px);
}

/* ---------- background slideshow (slow cross-fade; falls back to the gradient if no images) ---------- */
.bg-slideshow { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; will-change: opacity, transform; animation: bgFade 60s infinite;   /* 10 slides x 6s */
}
/* Each slide is held off until its 6s slot, then slowly pops in (gentle zoom) and fades off. */
.bg-slide:nth-child(1)  { animation-delay: 0s; }
.bg-slide:nth-child(2)  { animation-delay: 6s; }
.bg-slide:nth-child(3)  { animation-delay: 12s; }
.bg-slide:nth-child(4)  { animation-delay: 18s; }
.bg-slide:nth-child(5)  { animation-delay: 24s; }
.bg-slide:nth-child(6)  { animation-delay: 30s; }
.bg-slide:nth-child(7)  { animation-delay: 36s; }
.bg-slide:nth-child(8)  { animation-delay: 42s; }
.bg-slide:nth-child(9)  { animation-delay: 48s; }
.bg-slide:nth-child(10) { animation-delay: 54s; }
.bg-slideshow::after {                 /* darken so the white text / card stay readable */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,29,46,0.58) 0%, rgba(12,34,54,0.46) 100%);
}
/* 10% = one 6s slot; fade in (0-3%), hold (3-9%), fade off (9-12%) so slides cross-fade. */
@keyframes bgFade {
  0%   { opacity: 0; transform: scale(1.06); }
  3%   { opacity: 0.78; }               /* slow fade-in */
  6%   { transform: scale(1.0); }
  9%   { opacity: 0.78; }               /* hold */
  12%  { opacity: 0; }                  /* fade off */
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .bg-slide { animation: none; opacity: 0; } }
.bg-credit {
  position: fixed; right: 8px; bottom: 6px; z-index: 2;
  font-size: 9px; letter-spacing: 0.02em; color: rgba(234,242,248,0.5);
  text-decoration: none; pointer-events: auto;
}
.bg-credit:hover { color: rgba(234,242,248,0.85); text-decoration: underline; }

/* ---------- hero ---------- */
.auth-hero {
  position: relative; z-index: 1;
  flex: 1 1 380px; padding: 7vh 5.5vw; display: flex; flex-direction: column; justify-content: center;
}
.globe-wrap {
  width: 288px; height: 288px; margin-bottom: 26px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(42,145,184,0.38), transparent 70%);
  box-shadow: 0 0 90px rgba(42, 145, 184, 0.5);
}
#globe { width: 288px; height: 288px; display: block; }   /* 3 inch diameter */

.eyebrow {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.auth-hero h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.02em;
  background: linear-gradient(105deg, #ffd86b 0%, #ff9e57 22%, #41d6c3 55%, #5aa8ff 80%, #b79cff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(65, 214, 195, 0.25));
  animation: title-shimmer 8s ease-in-out infinite alternate;
}
@keyframes title-shimmer { from { background-position: 0% center; } to { background-position: 100% center; } }
.auth-hero p { color: #b9d3e3; font-size: 15.5px; line-height: 1.65; max-width: 540px; margin: 0; }
.auth-hero ul { list-style: none; padding: 0; margin: 22px 0 0; font-size: 14px; }
.auth-hero ul li {
  color: #dcebf4; line-height: 1.5; padding: 6px 0;
}

/* ---------- auth card (glass) ---------- */
.auth-card {
  position: relative; z-index: 1; flex: 0 0 430px; max-width: 100%; margin: auto; align-self: center;
  background: rgba(255, 255, 255, 0.80);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.7); border-radius: var(--radius);
  padding: 30px 32px 26px; box-shadow: var(--shadow); color: var(--ink); overflow: hidden;
}
.auth-card::before {                         /* gold top accent */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
}
.auth-card h2 {
  font-family: var(--display); font-weight: 700; margin: 4px 0 18px;
  text-align: center; font-size: 21px; letter-spacing: -0.01em;
  background: linear-gradient(100deg, #f7c948 0%, #f0932b 45%, #e8743b 75%, #d65a4a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.tabs { display: flex; gap: 6px; background: rgba(20, 64, 92, 0.06); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.tab {
  flex: 1; background: none; border: 0; padding: 10px; font-size: 13.5px; cursor: pointer; font-family: var(--font);
  color: var(--muted); border-radius: 9px; font-weight: 600; transition: background .15s ease, color .15s ease;
}
.tab.active { background: linear-gradient(135deg, var(--accent), var(--navy-2)); color: #fff; box-shadow: 0 4px 12px rgba(42,145,184,0.35); }

.auth-form { display: flex; flex-direction: column; gap: 13px; }
.auth-form label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 5px; font-weight: 500; }
.auth-form input, .auth-form textarea {
  font-family: var(--font); font-size: 14px; padding: 11px 12px; color: var(--ink);
  background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(20, 64, 92, 0.14); border-radius: 11px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.auth-form input::placeholder, .auth-form textarea::placeholder { color: #9aa9b4; }
.auth-form input:focus, .auth-form textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px rgba(42, 145, 184, 0.18);
}
.auth-form .hint { font-size: 11px; color: #94a3ad; font-weight: 400; }
.auth-form .field-row { display: flex; gap: 11px; }
.auth-form .field-row label { flex: 1; }
.auth-form button {
  margin-top: 8px; background: linear-gradient(135deg, var(--accent), var(--navy-2)); color: #fff; border: 0;
  border-radius: 12px; padding: 13px; font-size: 15px; cursor: pointer; font-weight: 700; font-family: var(--font);
  letter-spacing: 0.01em; box-shadow: 0 6px 18px rgba(42, 145, 184, 0.4);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.auth-form button:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 9px 24px rgba(42,145,184,0.5); }
.auth-form button:active { transform: translateY(0); }
.auth-form button:disabled { background: #5b7488; cursor: wait; box-shadow: none; transform: none; }

.auth-msg { margin-top: 15px; font-size: 13px; line-height: 1.55; min-height: 18px; }
.auth-msg.ok { color: #1e8449; }
.auth-msg.err { color: #c0392b; }
.auth-msg a { color: var(--accent); word-break: break-all; font-weight: 600; }

@media (max-width: 820px) { .auth-hero { padding: 6vh 8vw 2vh; } .auth-card { margin: 0 auto 6vh; } }
