@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Open+Sans:wght@300;400;500&display=swap');

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --bg-card:      rgba(4, 9, 28, 0.90);
  --border:       rgba(79, 195, 247, 0.22);
  --accent:       #4fc3f7;
  --accent-glow:  rgba(79, 195, 247, 0.35);
  --accent-dark:  #0277bd;
  --gold:         #c9a84c;
  --text:         #ddeeff;
  --text-muted:   #6e8faa;
  --input-bg:     rgba(255, 255, 255, 0.04);
  --input-border: rgba(79, 195, 247, 0.18);
  --error:        #ff6b6b;
  --success:      #69db7c;
  --radius:       8px;
}

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

/* ── Body ───────────────────────────────────────────────────────────────── */
body {
  min-height: 100vh;
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: url('../assets/moonhaven.png') center / cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 18, 0.68);
  z-index: 0;
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 42px 38px 36px;
  box-shadow:
    0 0 0 1px rgba(79, 195, 247, 0.06),
    0 0 50px rgba(79, 195, 247, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ── Logo ───────────────────────────────────────────────────────────────── */
.logo-wrap {
  text-align: center;
  margin-bottom: 30px;
}
.logo-wrap img {
  max-width: 250px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(79, 195, 247, 0.35));
}

/* ── Headings ───────────────────────────────────────────────────────────── */
h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.subtitle {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 26px;
  line-height: 1.5;
}

/* ── Form fields ────────────────────────────────────────────────────────── */
.field { margin-bottom: 15px; }

label {
  display: block;
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-bottom: 5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Open Sans', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
input::placeholder { color: rgba(110, 143, 170, 0.4); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  width: 100%;
  padding: 12px 16px;
  margin-top: 6px;
  background: linear-gradient(160deg, #0277bd 0%, #01579b 100%);
  border: 1px solid rgba(79, 195, 247, 0.5);
  border-radius: var(--radius);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s, opacity 0.2s;
}
.btn:hover:not(:disabled) {
  background: linear-gradient(160deg, #0288d1 0%, #0277bd 100%);
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-ghost {
  width: 100%;
  padding: 10px 16px;
  margin-top: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.83rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Index hero buttons ─────────────────────────────────────────────────── */
.hero-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  margin-top: 12px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.hero-btn:hover {
  border-color: var(--accent);
  background: rgba(79, 195, 247, 0.06);
  box-shadow: 0 0 20px rgba(79, 195, 247, 0.1);
}
.hero-btn .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.hero-btn .label {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.hero-btn .desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Messages ───────────────────────────────────────────────────────────── */
.message {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.84rem;
  text-align: center;
  line-height: 1.5;
  display: none;
}
.message.error {
  background: rgba(255, 107, 107, 0.10);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: var(--error);
  display: block;
}
.message.success {
  background: rgba(105, 219, 124, 0.08);
  border: 1px solid rgba(105, 219, 124, 0.35);
  color: var(--success);
  display: block;
}

/* ── Divider / Links ────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 22px 0;
}
.links {
  text-align: center;
  font-size: 0.81rem;
  color: var(--text-muted);
  margin-top: 18px;
}
.links a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.links a:hover { color: #fff; text-decoration: underline; }

/* ── Step indicator ─────────────────────────────────────────────────────── */
.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(79, 195, 247, 0.2);
  border: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.step-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-size: 0.74rem;
  color: rgba(110, 143, 170, 0.45);
  text-align: center;
}

/* ── Utility ────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
