/* ═══════════════════════════════════════════════════════
   Rivoner — Auth Pages Stylesheet
   ═══════════════════════════════════════════════════════ */

:root {
  --font-hero: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', 'Roboto Mono', monospace;
  --navy: #001C3F;
  --navy-dark: #00142D;
  --blue: #0070BA;
  --blue-hover: #005EA6;
  --bg: #FFFFFF;
  --border: #E2E8F0;
  --border-dark: #CBD5E1;
  --text-main: #0B132B;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-card: 24px;
  --shadow-btn: 0 2px 8px rgba(0, 112, 186, 0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100vh; height: 100%; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-main);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; transition: color 120ms ease; }
a:hover { text-decoration: underline; }
button, input, select { font-family: inherit; font-size: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ─── Split Layout ─── */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
@media (min-width: 992px) {
  .auth-layout { grid-template-columns: 50% 50%; }
}
@supports (min-height: 100dvh) {
  .auth-layout, .auth-form-col { min-height: 100dvh; }
}

/* Left Form Column */
.auth-form-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem clamp(1.5rem, 5vw, 4.5rem);
  min-height: 100vh;
}

.auth-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text-main);
  user-select: none;
  transition: opacity 120ms ease;
}
.auth-brand:hover { text-decoration: none; opacity: 0.88; }

.auth-form-box {
  max-width: 380px;
  width: 100%;
  margin: 2.5rem auto;
}

.auth-form-title {
  font-family: var(--font-brand);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.auth-form-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.auth-form-group { margin-bottom: 1rem; }
.auth-input-wrap { position: relative; display: flex; align-items: center; }

.auth-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: 14.5px;
  color: var(--text-main);
  transition: all 120ms ease;
}
.auth-input.has-toggle { padding-right: 46px; }
.auth-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 186, 0.14);
}
.auth-input::placeholder { color: #94A3B8; }

.auth-input-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 120ms ease;
}
.auth-input-toggle:hover { color: var(--text-main); background: rgba(0, 28, 63, 0.05); }

/* Code input (login verification) */
.auth-code-input {
  width: 100%;
  height: 60px;
  padding: 0 16px;
  background: #F8FAFC;
  border: 2px solid var(--border-dark);
  border-radius: 14px;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 10px;
  color: var(--text-main);
  transition: all 150ms ease;
}
.auth-code-input:focus {
  outline: none;
  border-color: var(--blue);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(0, 112, 186, 0.12);
}

.auth-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  margin-bottom: 1.5rem;
}
.auth-forgot-link {
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 500;
}
.auth-forgot-link:hover { color: var(--blue); }

/* Password strength */
.pwd-bar { height: 3px; background: #E2E8F0; border-radius: 999px; margin-top: 5px; overflow: hidden; }
.pwd-bar-fill { height: 100%; width: 0%; transition: width 150ms ease, background-color 150ms ease; }

/* Terms */
.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 1.25rem 0;
  line-height: 1.45;
  user-select: none;
}
.auth-terms input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 2px;
  accent-color: var(--blue); cursor: pointer; flex-shrink: 0;
}
.auth-terms label { cursor: pointer; }

/* Buttons */
.btn-auth-primary {
  width: 100%;
  height: 48px;
  background: var(--blue);
  color: #FFFFFF;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 140ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-btn);
  margin-bottom: 10px;
}
.btn-auth-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 112, 186, 0.35);
}
.btn-auth-primary:active { transform: translateY(0) scale(0.99); }
.btn-auth-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
}
.auth-switch a { font-weight: 600; color: var(--blue); }

.auth-bottom-links {
  display: flex;
  gap: 18px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.auth-bottom-links a { color: var(--text-muted); }
.auth-bottom-links a:hover { color: var(--text-main); }

/* Resend link */
.auth-resend {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 1.5rem;
}
.auth-resend a { font-weight: 600; color: var(--blue); }

/* Alert */
.auth-alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-alert.error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.auth-alert.success { background: #EAF7EF; border: 1px solid #C6ECD4; color: #0E8044; }

/* Shield icon area (verify code) */
.auth-shield {
  display: inline-flex;
  background: rgba(0, 112, 186, 0.08);
  color: var(--blue);
  padding: 14px;
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

/* Right Visual Column */
.auth-visual-col {
  display: none;
  padding: 18px;
}
@media (min-width: 992px) {
  .auth-visual-col { display: flex; }
}

.auth-card-dark {
  background-color: var(--navy);
  background-image:
    linear-gradient(180deg, rgba(0, 18, 42, 0.38) 0%, rgba(0, 18, 42, 0.25) 45%, rgba(0, 14, 33, 0.94) 92%),
    url('/img/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  border-radius: var(--radius-card);
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 36px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  color: #FFFFFF;
  padding: 3rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 20, 45, 0.35);
  user-select: none;
}

/* Aura graphic */
.aura-container {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto 0;
}
.aura-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, transparent 70%);
  animation: pulseAura 4s ease-in-out infinite alternate;
}
@keyframes pulseAura {
  0% { transform: scale(0.92); opacity: 0.6; }
  100% { transform: scale(1.08); opacity: 1; }
}
.aura-logo {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.auth-card-heading {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin-top: auto;
}
.auth-card-lead {
  font-family: var(--font);
  font-size: 1.25rem;
  color: #CBD5E1;
  font-weight: 400;
  margin-bottom: 4px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.auth-card-bold {
  font-family: var(--font-hero);
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
