/* ============================================================
   auth-premium.css
   Premium Rudra FX Pool authentication design system
   ============================================================ */

:root {
  --auth-bg: #050816;
  --auth-bg-2: #0a0f1f;
  --auth-bg-3: #111827;
  --auth-surface: rgba(14, 20, 36, 0.72);
  --auth-surface-2: rgba(8, 12, 24, 0.84);
  --auth-line: rgba(255, 255, 255, 0.08);
  --auth-line-2: rgba(0, 200, 83, 0.18);
  --auth-text: #ffffff;
  --auth-text-2: #e5e7eb;
  --auth-text-3: #94a3b8;
  --auth-primary: #00c853;
  --auth-primary-2: #00e676;
  --auth-primary-3: #00a86b;
  --auth-danger: #fb7185;
  --auth-warning: #fbbf24;
  --auth-shadow: 0 26px 80px rgba(0, 0, 0, 0.46);
  --auth-radius: 24px;
  --auth-radius-sm: 16px;
}

html[data-theme="light"] body.auth-page,
html[data-theme="dark"] body.auth-page,
body.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 18%, rgba(0, 230, 118, 0.18), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(0, 200, 83, 0.14), transparent 18%),
    linear-gradient(180deg, var(--auth-bg), var(--auth-bg-2) 56%, var(--auth-bg) 100%);
  color: var(--auth-text);
  overflow-x: hidden;
}

body.auth-page .pub-nav,
body.auth-page .pub-footer {
  display: none !important;
}

body.auth-page .auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 1rem;
  padding: 1rem;
  position: relative;
}

body.auth-page .auth-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(0, 200, 83, 0.07), transparent 22%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.08), transparent 20%);
  opacity: 0.9;
}

body.auth-page .auth-panel-left,
body.auth-page .auth-panel-right {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--auth-shadow);
}

body.auth-page .auth-panel-left {
  min-height: calc(100vh - 2rem);
  padding: clamp(1.3rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(6, 10, 24, 0.92), rgba(5, 8, 22, 0.76)),
    url("../images/hero-rfx-bg.png") center right / cover no-repeat;
}

body.auth-page .auth-panel-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(0, 200, 83, 0.12), transparent 20%),
    radial-gradient(circle at 72% 26%, rgba(0, 230, 118, 0.16), transparent 18%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent 55%);
  pointer-events: none;
}

body.auth-page .auth-panel-left::after {
  content: "";
  position: absolute;
  inset: auto 7% 18% auto;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  border: 1px solid rgba(0, 200, 83, 0.12);
  box-shadow: 0 0 80px rgba(0, 200, 83, 0.08);
  pointer-events: none;
}

body.auth-page .auth-panel-right {
  min-height: calc(100vh - 2rem);
  padding: clamp(1rem, 2vw, 1.25rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(16, 23, 42, 0.82), rgba(10, 15, 31, 0.86)),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}

body.auth-page .auth-brand {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

body.auth-page .auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

body.auth-page .auth-brand-logo .logo-box {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  object-fit: cover;
  background: #000;
  border: 1px solid rgba(0, 200, 83, 0.24);
  box-shadow: 0 0 26px rgba(0, 200, 83, 0.12);
}

body.auth-page .auth-brand-logo .logo-text {
  color: var(--auth-text);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.1;
}

body.auth-page .auth-brand-logo .logo-text span {
  display: block;
  margin-top: 0.22rem;
  color: var(--auth-text-3);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

body.auth-page .auth-headline {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.9rem, 6vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 950;
  text-wrap: balance;
}

body.auth-page .auth-headline span {
  color: var(--auth-primary-2);
  text-shadow: 0 0 24px rgba(0, 230, 118, 0.2);
}

body.auth-page .auth-subtext {
  margin: 1rem 0 0;
  max-width: 34rem;
  color: rgba(229, 231, 235, 0.78);
  font-size: 1rem;
  line-height: 1.7;
}

body.auth-page .auth-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  padding: 0.56rem 0.85rem;
  border: 1px solid rgba(0, 230, 118, 0.18);
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.72);
  color: var(--auth-text-2);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

body.auth-page .auth-trust-pill i {
  color: var(--auth-primary-2);
}

body.auth-page .auth-feature-stack {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

body.auth-page .auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

body.auth-page .auth-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.08);
  color: var(--auth-primary-2);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

body.auth-page .auth-feature-body {
  min-width: 0;
}

body.auth-page .auth-feature-title {
  color: var(--auth-text);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.3;
}

body.auth-page .auth-feature-copy {
  margin-top: 0.15rem;
  color: rgba(229, 231, 235, 0.68);
  font-size: 0.75rem;
  line-height: 1.45;
}

body.auth-page .auth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: clamp(1.25rem, 4vw, 2rem);
}

body.auth-page .auth-stat,
body.auth-page .auth-testimonial {
  background: rgba(8, 12, 24, 0.62);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

body.auth-page .auth-stat {
  padding: 1rem;
  min-height: 88px;
}

body.auth-page .auth-stat .s-val {
  color: var(--auth-text);
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1.1;
}

body.auth-page .auth-stat .s-label {
  margin-top: 0.28rem;
  color: var(--auth-text-3);
  font-size: 0.78rem;
  line-height: 1.4;
}

body.auth-page .auth-testimonial {
  margin-top: clamp(1rem, 3vw, 1.5rem);
  padding: 1.1rem 1.15rem;
}

body.auth-page .auth-testimonial p {
  margin: 0;
  color: var(--auth-text-2);
  font-size: 0.95rem;
  line-height: 1.75;
}

body.auth-page .t-author {
  margin-top: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body.auth-page .t-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 200, 83, 0.95), rgba(0, 230, 118, 0.65));
  color: #07110d;
  display: grid;
  place-items: center;
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(0, 200, 83, 0.18);
}

body.auth-page .t-name {
  color: var(--auth-text);
  font-size: 0.92rem;
  font-weight: 900;
}

body.auth-page .t-role {
  color: var(--auth-text-3);
  font-size: 0.76rem;
}

body.auth-page .auth-form-box {
  width: min(100%, 540px);
  background: var(--auth-surface);
  border: 1px solid var(--auth-line);
  border-radius: 28px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 18px 50px rgba(0,0,0,0.34);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
}

body.auth-page .auth-form-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, rgba(0, 200, 83, 0.12), transparent);
  pointer-events: none;
}

body.auth-page .auth-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

body.auth-page .theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--auth-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.auth-page .theme-toggle::before {
  content: "\f186";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

body.auth-page .form-group {
  margin-bottom: 1rem;
}

body.auth-page .form-label,
body.auth-page .lbl {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--auth-text-3);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

body.auth-page .form-control,
body.auth-page .finput,
body.auth-page select.form-control,
body.auth-page textarea.form-control {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--auth-text);
  padding: 0.95rem 1rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

body.auth-page .form-control::placeholder,
body.auth-page .finput::placeholder {
  color: #7f8d86;
}

body.auth-page .form-control:focus,
body.auth-page .finput:focus,
body.auth-page select.form-control:focus,
body.auth-page textarea.form-control:focus {
  border-color: rgba(0, 230, 118, 0.42);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.12);
}

body.auth-page .input-group,
body.auth-page .auth-phone-row {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
}

body.auth-page .input-group .pass-toggle,
body.auth-page .auth-phone-row select.form-control {
  flex: 0 0 auto;
}

body.auth-page .pass-toggle,
body.auth-page .toggle-pass {
  width: 52px;
  min-width: 52px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--auth-text-3);
}

body.auth-page .btn,
body.auth-page .btn-login,
body.auth-page .btn-primary,
body.auth-page .btn-google,
body.auth-page .btn-outline,
body.auth-page .btn-back {
  min-height: 54px;
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
}

body.auth-page .btn-primary,
body.auth-page .btn-login {
  border: 0;
  color: #07110d;
  background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-2));
  box-shadow: 0 16px 34px rgba(0, 200, 83, 0.22);
}

body.auth-page .btn-primary:hover,
body.auth-page .btn-login:hover,
body.auth-page .btn-google:hover,
body.auth-page .btn-outline:hover,
body.auth-page .btn-back:hover {
  transform: translateY(-1px);
}

body.auth-page .btn-google {
  background: rgba(255,255,255,0.95);
  color: #08101f;
  border: 1px solid rgba(255,255,255,0.18);
}

body.auth-page .btn-outline,
body.auth-page .btn-back {
  background: rgba(255,255,255,0.03);
  color: var(--auth-text-2);
  border: 1px solid rgba(255,255,255,0.08);
}

body.auth-page .auth-divider,
body.auth-page .divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1rem 0;
  color: var(--auth-text-3);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 900;
}

body.auth-page .auth-divider::before,
body.auth-page .auth-divider::after,
body.auth-page .divider::before,
body.auth-page .divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

body.auth-page .auth-link,
body.auth-page .fineprint,
body.auth-page .card-foot {
  color: var(--auth-text-3);
}

body.auth-page .auth-link {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.88rem;
}

body.auth-page .auth-link a {
  color: var(--auth-primary-2);
  font-weight: 900;
}

body.auth-page .alert,
body.auth-page .banner,
body.auth-page .reason-banner,
body.auth-page .lockout-banner {
  border-radius: 16px;
  padding: 0.95rem 1rem;
  line-height: 1.6;
}

body.auth-page .alert {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--auth-text-2);
}

body.auth-page .alert.alert-danger,
body.auth-page .banner.banner-warn,
body.auth-page .lockout-banner {
  background: rgba(251, 113, 133, 0.08);
  color: #fecdd3;
  border: 1px solid rgba(251, 113, 133, 0.18);
}

body.auth-page .alert.alert-info,
body.auth-page .banner.banner-info {
  background: rgba(0, 200, 83, 0.08);
  color: #d1fae5;
  border: 1px solid rgba(0, 200, 83, 0.16);
}

body.auth-page .strength-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-top: 0.7rem;
}

body.auth-page .strength-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--auth-primary), var(--auth-primary-2));
  border-radius: inherit;
  transition: width .2s ease, background .2s ease;
}

body.auth-page .form-hint,
body.auth-page .locked-sub,
body.auth-page .otp-hint,
body.auth-page .resend-timer,
body.auth-page .oauth-status-copy {
  color: var(--auth-text-3);
}

body.auth-page .terms-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--auth-text-3);
}

body.auth-page .terms-check input {
  margin-top: 0.2rem;
  accent-color: var(--auth-primary);
}

body.auth-page .email-code {
  letter-spacing: 0.34em;
  font-size: 1.25rem;
  text-align: center;
}

body.auth-page .auth-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

body.auth-page .auth-phone-row select.form-control {
  width: 96px;
}

body.auth-page .auth-testimonial,
body.auth-page .auth-stat,
body.auth-page .locked-box,
body.auth-page .oauth-status-card {
  animation: authFadeUp 0.6s ease both;
}

body.auth-page .auth-brand-logo,
body.auth-page .auth-form-box {
  animation: authFadeUp 0.5s ease both;
}

body.auth-page .auth-form-box {
  position: relative;
}

body.auth-page .auth-form-box > * {
  position: relative;
  z-index: 1;
}

body.auth-page .auth-form-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 950;
  color: var(--auth-text);
}

body.auth-page .auth-form-subtitle {
  margin: 0 0 1.2rem;
  color: var(--auth-text-3);
  line-height: 1.65;
  font-size: 0.96rem;
}

body.auth-page .auth-topbar .theme-toggle {
  box-shadow: none;
}

body.auth-page .lockout-countdown,
body.auth-page .locked-countdown {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

body.auth-page .auth-panel-right .auth-form-box .btn-row {
  display: grid;
  gap: 0.8rem;
}

body.auth-page .oauth-callback-page {
  background: linear-gradient(180deg, var(--auth-bg), var(--auth-bg-2));
}

body.auth-page .oauth-logo-mark {
  object-fit: cover;
  padding: 0;
  background: #07111b;
}

body.auth-page .brand-shine {
  position: absolute;
  inset: auto auto 10% 0;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.16), transparent 60%);
  pointer-events: none;
}

@keyframes authFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1080px) {
  body.auth-page .auth-wrapper {
    grid-template-columns: 1fr;
  }

  body.auth-page .auth-panel-left,
  body.auth-page .auth-panel-right {
    min-height: auto;
  }

  body.auth-page .auth-panel-left {
    padding-bottom: 2rem;
  }
}

@media (max-width: 680px) {
  body.auth-page .auth-wrapper {
    padding: 0.8rem;
  }

  body.auth-page .auth-panel-left,
  body.auth-page .auth-panel-right {
    border-radius: 20px;
  }

  body.auth-page .auth-panel-left {
    padding: 1rem;
  }

  body.auth-page .auth-panel-right {
    padding: 0.75rem;
  }

  body.auth-page .auth-stats,
  body.auth-page .auth-grid-2 {
    grid-template-columns: 1fr;
  }

  body.auth-page .auth-headline {
    max-width: 100%;
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  body.auth-page .auth-form-box {
    padding: 1rem;
    border-radius: 22px;
  }

  body.auth-page .auth-form-title {
    font-size: 1.7rem;
  }

  body.auth-page .auth-phone-row {
    flex-direction: column;
  }

  body.auth-page .auth-phone-row select.form-control {
    width: 100%;
  }

  body.auth-page .auth-panel-left::after {
    display: none;
  }
}
