/* ==========================================================================
   Sign-in pages (login, register, forgot / reset password, email verification,
   two-factor). Same palette, type and components as the user dashboard
   (auros-dashboard.css): dark teal surfaces, light gradient primary button,
   cyan accents, 6px radius controls.
   ========================================================================== */

:root {
  --ax-bg: #001413;
  --ax-surface: #012624;
  --ax-surface-2: #01302d;
  --ax-field: rgba(0, 20, 19, .6);
  --ax-line: rgba(255, 255, 255, .10);
  --ax-line-soft: rgba(255, 255, 255, .05);
  --ax-text: #ffffff;
  --ax-text-2: #bbc7c6;
  --ax-text-3: #838b8b;
  --ax-cyan: #cbfffc;
  --ax-pink: #fad1ff;
  --ax-teal: #02b9b0;
  --ax-teal-dark: #01534f;
  --ax-up: #3fe0c5;
  --ax-down: #ff8a9a;
  --ax-warn: #ffd18a;
  --ax-radius: 6px;
  --ax-radius-lg: 14px;
  --ax-grad-light: linear-gradient(90deg, #fad1ff, #fffdfa, #edfffe, #cbfffc, #cbfffc);
  --ax-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
.ax-auth-body {
  min-height: 100vh; color: var(--ax-text); font-family: var(--ax-font); font-size: 14px; line-height: 1.5;
  letter-spacing: -.2px; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(2, 185, 176, .15) 0%, transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(250, 209, 255, .07) 0%, transparent 70%),
    var(--ax-bg);
  background-attachment: fixed;
}
.ax-auth-body a { color: var(--ax-cyan); text-decoration: none; }
.ax-auth-body a:hover { text-decoration: underline; }
.ax-auth-body img { max-width: 100%; }

/* ---------------------------------------------------------------- Layout */
.ax-auth { display: grid; grid-template-columns: minmax(380px, 44%) 1fr; min-height: 100vh; }

.ax-auth-side {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px 48px; border-right: 1px solid var(--ax-line);
  background:
    radial-gradient(120% 80% at 100% 100%, rgba(2, 185, 176, .35), transparent 60%),
    radial-gradient(70% 60% at 0% 0%, rgba(250, 209, 255, .08), transparent 70%),
    linear-gradient(165deg, #012e2b 0%, #011f1d 55%, #000f0e 100%);
}
.ax-auth-logo { display: inline-flex; align-items: center; position: relative; z-index: 1; }
.ax-auth-logo img { height: 32px; width: auto; }
.ax-auth-pitch { position: relative; z-index: 1; max-width: 460px; }
.ax-auth-eyebrow { display: inline-block; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ax-cyan); margin-bottom: 18px; }
.ax-auth-pitch h2 { margin: 0 0 16px; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; font-weight: 500; letter-spacing: -1.4px; }
.ax-auth-pitch h2 span { background: var(--ax-grad-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ax-auth-pitch p { margin: 0 0 26px; color: var(--ax-text-2); font-size: 15px; max-width: 400px; }
.ax-auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ax-auth-points li { display: flex; align-items: center; gap: 12px; color: var(--ax-text); font-size: 14px; }
.ax-auth-points i { width: 22px; height: 22px; flex: none; border-radius: 50%; background: rgba(2, 185, 176, .18); border: 1px solid rgba(203, 255, 252, .25); position: relative; }
.ax-auth-points i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid var(--ax-cyan); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ax-auth-legal { position: relative; z-index: 1; margin: 0; color: var(--ax-text-3); font-size: 12px; }

/* Orbiting globe, same as the Staking Hub card */
.ax-auth-orb { position: absolute; right: -60px; bottom: 60px; width: 360px; height: 360px; display: grid; place-items: center; pointer-events: none; opacity: .9; }
.ax-auth-orb span { position: absolute; border-radius: 50%; border: 1px solid rgba(203, 255, 252, .22); animation: axAuthOrbit 16s linear infinite; }
.ax-auth-orb span:nth-child(1) { width: 190px; height: 190px; background: radial-gradient(circle at 35% 30%, rgba(203, 255, 252, .5), rgba(2, 185, 176, .22) 42%, rgba(1, 38, 36, 0) 70%); box-shadow: 0 0 80px rgba(2, 185, 176, .35); }
.ax-auth-orb span:nth-child(2) { width: 300px; height: 120px; border-color: rgba(250, 209, 255, .32); transform: rotate(-18deg); animation-duration: 20s; }
.ax-auth-orb span:nth-child(3) { width: 350px; height: 160px; border-style: dashed; border-color: rgba(203, 255, 252, .14); transform: rotate(14deg); animation-direction: reverse; animation-duration: 28s; }
@keyframes axAuthOrbit { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .ax-auth-orb span { animation: none; } }

.ax-auth-main { display: flex; flex-direction: column; min-width: 0; padding: 24px 32px; }
.ax-auth-top { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 40px; }
.ax-auth-logo--mobile { display: none; margin-right: auto; }
.ax-auth-back { display: inline-flex; align-items: center; gap: 6px; color: var(--ax-text-2) !important; font-size: 13px; padding: 8px 12px; border: 1px solid var(--ax-line); border-radius: var(--ax-radius); }
.ax-auth-back:hover { color: var(--ax-text) !important; border-color: rgba(255, 255, 255, .25); text-decoration: none !important; }
.ax-auth-back svg { width: 14px; height: 14px; }
.ax-auth-center { flex: 1; display: grid; place-items: center; padding: 28px 0; }
.ax-auth-card { width: 100%; max-width: 440px; }
.ax-auth-card.is-wide { max-width: 560px; }
.ax-auth-foot { display: flex; justify-content: center; gap: 20px; font-size: 12px; }
.ax-auth-foot a { color: var(--ax-text-3) !important; }
.ax-auth-foot a:hover { color: var(--ax-text-2) !important; }

/* ---------------------------------------------------------------- Card content */
.ax-auth-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 20px; background: rgba(2, 185, 176, .14); border: 1px solid rgba(203, 255, 252, .2); color: var(--ax-cyan); }
.ax-auth-icon svg { width: 22px; height: 22px; }
.ax-auth-title { margin: 0 0 8px; font-size: 28px; line-height: 1.15; font-weight: 500; letter-spacing: -.8px; }
.ax-auth-sub { margin: 0 0 26px; color: var(--ax-text-2); font-size: 14px; }
.ax-auth-sub strong { color: var(--ax-text); font-weight: 500; }

.ax-alert { display: flex; gap: 10px; padding: 12px 14px; margin-bottom: 18px; border-radius: 10px; font-size: 13px; line-height: 1.5; border: 1px solid; }
.ax-alert ul { margin: 0; padding-left: 16px; }
.ax-alert--error { background: rgba(255, 138, 154, .08); border-color: rgba(255, 138, 154, .3); color: #ffc2cb; }
.ax-alert--ok { background: rgba(63, 224, 197, .08); border-color: rgba(63, 224, 197, .3); color: #b6f5ea; }

.ax-form { display: grid; gap: 16px; }
.ax-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ax-field { display: grid; gap: 7px; min-width: 0; }
.ax-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; color: var(--ax-text-2); letter-spacing: .2px; }
.ax-label em { font-style: normal; color: var(--ax-text-3); }
.ax-label a { font-size: 12px; }
.ax-control { position: relative; display: flex; align-items: center; }
.ax-input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--ax-radius); border: 1px solid var(--ax-line);
  background: var(--ax-field); color: var(--ax-text); font: inherit; font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ax-input::placeholder { color: var(--ax-text-3); }
.ax-input:focus { border-color: var(--ax-teal); box-shadow: 0 0 0 3px rgba(2, 185, 176, .16); }
.ax-input:-webkit-autofill { -webkit-text-fill-color: var(--ax-text); box-shadow: 0 0 0 40px #012321 inset; caret-color: var(--ax-text); }
.ax-control--icon .ax-input { padding-left: 42px; }
.ax-control--toggle .ax-input { padding-right: 44px; }
.ax-control > svg.ax-lead { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--ax-text-3); pointer-events: none; }
.ax-eye { position: absolute; right: 6px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: var(--ax-radius); background: transparent; color: var(--ax-text-3); cursor: pointer; }
.ax-eye:hover { color: var(--ax-text); background: var(--ax-line-soft); }
.ax-eye svg { width: 17px; height: 17px; }
.ax-eye[aria-pressed="true"] { color: var(--ax-cyan); }
select.ax-input { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23bbc7c6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
select.ax-input option { background: var(--ax-surface); color: var(--ax-text); }
.ax-dial { position: absolute; left: 1px; top: 1px; bottom: 1px; display: grid; place-items: center; min-width: 56px; padding: 0 10px; border-right: 1px solid var(--ax-line); border-radius: var(--ax-radius) 0 0 var(--ax-radius); background: rgba(255, 255, 255, .03); color: var(--ax-text-2); font-size: 13px; }
.ax-control--dial .ax-input { padding-left: 70px; }

.ax-otp { text-align: center; font-size: 22px; letter-spacing: 10px; font-variant-numeric: tabular-nums; height: 56px; }

.ax-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ax-text-2); cursor: pointer; line-height: 1.45; }
.ax-check input { appearance: none; width: 18px; height: 18px; flex: none; margin: 1px 0 0; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .25); background: var(--ax-field); cursor: pointer; display: grid; place-items: center; }
.ax-check input:checked { background: var(--ax-teal); border-color: var(--ax-teal); }
.ax-check input:checked::after { content: ""; width: 5px; height: 9px; border: solid #001413; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.ax-check input:focus-visible { outline: 2px solid var(--ax-cyan); outline-offset: 2px; }
.ax-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ax-between a { font-size: 13px; }

.ax-btn {
  width: 100%; height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--ax-radius); border: 1px solid transparent; font: inherit; font-size: 13px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer; transition: opacity .15s, transform .15s, border-color .15s;
}
.ax-btn--primary { background: var(--ax-grad-light); color: #001413; }
.ax-btn--primary:hover { opacity: .92; transform: translateY(-1px); }
.ax-btn--ghost { background: transparent; color: var(--ax-text); border-color: var(--ax-line); }
.ax-btn--ghost:hover { border-color: rgba(255, 255, 255, .3); }
.ax-btn:disabled, .ax-btn.is-busy { opacity: .6; cursor: progress; transform: none; }
.ax-btn svg { width: 16px; height: 16px; }

.ax-auth-alt { margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--ax-text-2); }
.ax-auth-alt a { font-weight: 500; }
.ax-divider { height: 1px; background: var(--ax-line); margin: 6px 0; border: 0; }
.ax-steps { margin: 0 0 22px; padding: 14px 16px; list-style: none; display: grid; gap: 10px; border-radius: 10px; background: rgba(0, 20, 19, .45); border: 1px solid var(--ax-line-soft); font-size: 13px; color: var(--ax-text-2); }
.ax-steps li { display: flex; gap: 10px; }
.ax-steps b { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 600; color: #001413; background: var(--ax-cyan); }
.g-recaptcha { transform-origin: left top; }

/* ---------------------------------------------------------------- Responsive */
@media (min-width: 1800px) {
  .ax-auth-card { max-width: 480px; }
  .ax-auth-card.is-wide { max-width: 600px; }
}
@media (max-width: 1080px) {
  .ax-auth { grid-template-columns: 1fr; }
  .ax-auth-side { display: none; }
  .ax-auth-logo--mobile { display: inline-flex; }
}
@media (max-width: 560px) {
  .ax-auth-main { padding: 16px 18px; }
  .ax-auth-center { place-items: start center; padding: 26px 0 30px; }
  .ax-auth-title { font-size: 24px; }
  .ax-row { grid-template-columns: 1fr; }
  .ax-auth-back span { display: none; }
  .ax-auth-logo img { height: 28px; }
  .g-recaptcha { transform: scale(.92); }
}
