/* =================================================================
   Sirius portal — shared styles v3 (light mode, matches landing page)
   For register.html, verify.html, login.html.
   ================================================================= */

:root {
  --bg:           #FFFFFF;
  --bg-alt:       #F5F7FD;
  --bg-alt-2:     #EAEDF4;
  --bg-dark:      #0E1525;

  --text:         #1B2440;
  --text-muted:   #4F5B7E;
  --text-dim:     #94A3B8;

  --border:       rgba(15, 23, 42, 0.08);
  --border-strong:rgba(15, 23, 42, 0.16);

  --orange:       #EF6B22;
  --orange-deep:  #D85510;
  --orange-soft:  #FDE6D8;
  --emerald:      #10B981;
  --emerald-deep: #059669;
  --emerald-soft: #D1FAE5;

  --accent-grad:  linear-gradient(90deg, #EF6B22 0%, #F59E0B 100%);

  --radius-btn:  4px;
  --radius-card: 16px;
  --radius-pill: 999px;

  --font-display: 'Poppins', -apple-system, 'SF Pro Display', BlinkMacSystemFont, sans-serif;
  --font-sans:    'Inter', -apple-system, 'SF Pro Text', BlinkMacSystemFont, sans-serif;

  --danger: #EF4444;
  --success: #10B981;

  --shadow-card:  0 10px 36px -14px rgba(15, 23, 42, 0.15), 0 2px 6px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-deep); }

/* Page shell */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
/* Subtle radial accents */
.page::before {
  content: "";
  position: absolute;
  inset: -20% 50% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle at center, rgba(239, 107, 34, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.page::after {
  content: "";
  position: absolute;
  inset: auto auto -20% -20%;
  width: 60vw;
  height: 60vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  text-decoration: none;
  color: inherit;
}
.brand-chevron {
  width: 30px;
  height: 56px;
  flex-shrink: 0;
}
.brand-wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}
.brand-sirius {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: #101526;
}
.brand-networks {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--emerald);
  text-transform: lowercase;
}
.brand-networks .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 40px 36px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
}
.card.wide { max-width: 600px; }

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  font-weight: 700;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 700;
}
h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0 0 28px;
}

/* Form */
form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.req { color: var(--orange); }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-btn);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(239, 107, 34, 0.15);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }

/* Hide Safari's built-in password reveal so it doesn't clash with our Show toggle */
input::-webkit-credentials-auto-fill-button,
input::-webkit-strong-password-auto-fill-button {
  visibility: hidden; display: none !important; pointer-events: none;
}
input::-ms-reveal, input::-ms-clear { display: none; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 64px; }
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-btn);
}
.password-toggle:hover { color: var(--orange); background: var(--orange-soft); }

.hint { font-size: 0.8rem; color: var(--text-dim); margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn.full { width: 100%; }
.btn-primary {
  background: var(--orange);
  color: #FFFFFF;
  box-shadow: 0 10px 24px -10px rgba(239, 107, 34, 0.55);
}
.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -10px rgba(239, 107, 34, 0.7);
  color: #FFFFFF;
}
.btn-primary[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline {
  background: #FFFFFF;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  margin: 0 0 18px;
  border: 1px solid;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.alert[hidden] { display: none; }
.alert-error   { background: #FEF2F2; border-color: #FCA5A5; color: #B91C1C; }
.alert-success { background: var(--emerald-soft); border-color: rgba(16,185,129,0.4); color: var(--emerald-deep); }
.alert-info    { background: var(--orange-soft); border-color: rgba(239,107,34,0.3); color: var(--orange-deep); }

.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.foot {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 24px 0 0;
  position: relative;
  z-index: 1;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 540px) {
  .card { padding: 32px 22px; }
  form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
