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

:root {
  --gold: #b48c3c;
  --gold-light: #d4a94e;
  --bg: #476658;
  --card-bg: #1a1a1a;
  --text: #f0ece4;
  --text-muted: #9a9286;
  --border: #2a2520;
  --error: #e54545;
}

body {
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.portal {
  width: 100%;
  max-width: 420px;
  padding: 1rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
}

/* Brand header */
.brand { margin-bottom: 0.25rem; }

.brand-logo {
  display: block;
  margin: 0 auto;
  width: 100px;
  height: auto;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 1.25rem 0;
}

/* Headings */
.card-heading {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.card-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

/* Form */
form { display: flex; flex-direction: column; gap: 0.75rem; }

.form-row {
  display: flex;
  gap: 0.75rem;
}
.form-row input { flex: 1; min-width: 0; }

input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
input::placeholder { color: var(--text-muted); }
input:focus {
  outline: none;
  border-color: var(--gold);
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Button */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem;
  margin-top: 0.25rem;
  background: var(--gold);
  color: #0e0e0e;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--gold-light); }
.btn:active { transform: scale(0.98); }
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Spinner */
.spinner[hidden] { display: none; }
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(14,14,14,0.3);
  border-top-color: #0e0e0e;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Terms */
.terms {
  margin-top: 1rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.terms a {
  color: var(--gold);
  text-decoration: none;
}
.terms a:hover { text-decoration: underline; }

/* Error */
.error {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--error);
}

/* Success screen */
.success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  background: var(--gold);
  color: #0e0e0e;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 700;
  line-height: 64px;
  text-align: center;
}

.social-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}
.socials a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.socials a:hover { color: var(--gold); }

/* Powered by */
.powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
}
.powered:hover { opacity: 0.8; }
.powered-logo {
  height: 16px;
  width: auto;
  vertical-align: middle;
}

/* Mobile tweaks */
@media (max-width: 380px) {
  .card { padding: 1.5rem 1.15rem; }
  .brand-name { font-size: 1.5rem; }
  .form-row { flex-direction: column; }
}
