/* ============================================================
   Cybrixen CAP — Auth Pages CSS
   Login · Register · Forgot Password · Reset
   ============================================================ */

.cx-auth-page {
  min-height: 100vh;
  display: flex;
  background: #0f0f1a;
  position: relative;
  overflow: hidden;
}

/* ── Animated background ──────────────────────────────────── */
.cx-auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cx-auth-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cx-auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orb-float 8s ease-in-out infinite;
}

.cx-auth-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}

.cx-auth-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,0.25) 0%, transparent 70%);
  bottom: -50px; right: -50px;
  animation-delay: 4s;
}

.cx-auth-orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  top: 50%; left: 30%;
  animation-delay: 2s;
}

/* ── Auth Split Layout ────────────────────────────────────── */
.cx-auth-split {
  display: flex;
  width: 100%;
}

/* Left panel - branding */
.cx-auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px;
  position: relative;
  z-index: 2;
}

.cx-auth-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 60px;
}

.cx-auth-logo-mark {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cx-auth-logo-text {
  display: flex; flex-direction: column;
}

.cx-auth-logo-name {
  font-size: 1.5rem; font-weight: 800;
  color: #fff; letter-spacing: 0.08em;
}

.cx-auth-logo-tag {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cx-auth-headline {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 480px;
}

.cx-auth-headline span {
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cx-auth-subtext {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 48px;
}

.cx-auth-stats {
  display: flex;
  gap: 40px;
}

.cx-auth-stat {
  text-align: center;
}

.cx-auth-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.cx-auth-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Right panel - form */
.cx-auth-right {
  width: 480px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  z-index: 2;
  background: rgba(15,15,26,0.85);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255,255,255,0.06);
}

/* ── Auth Card ────────────────────────────────────────────── */
.cx-auth-card {
  width: 100%;
  max-width: 400px;
}

.cx-auth-card-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.cx-auth-card-subtitle {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 36px;
}

/* Form fields in dark context */
.cx-auth-card .form-label {
  color: rgba(255,255,255,0.7);
}

.cx-auth-card .form-control {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #fff;
}

.cx-auth-card .form-control:focus {
  background: rgba(255,255,255,0.08);
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}

.cx-auth-card .form-control::placeholder {
  color: rgba(255,255,255,0.25);
}

.cx-auth-card .form-hint {
  color: rgba(255,255,255,0.35);
}

.cx-auth-card .form-error {
  color: #fca5a5;
}

/* Alert in dark context */
.cx-auth-card .cx-alert-error {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
  color: #fca5a5;
}

.cx-auth-card .cx-alert-success {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.3);
  color: #6ee7b7;
}

/* Submit button in auth */
.cx-auth-card .btn-auth-submit {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(99,102,241,0.4);
  letter-spacing: 0.02em;
}

.cx-auth-card .btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99,102,241,0.5);
}

.cx-auth-card .btn-auth-submit:active {
  transform: translateY(0);
}

/* Divider */
.cx-auth-divider {
  display: flex;
  align-items: center;
  gap: var(--cx-space-3);
  margin: var(--cx-space-5) 0;
  color: rgba(255,255,255,0.2);
  font-size: 0.8rem;
}

.cx-auth-divider::before,
.cx-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

/* Links in dark context */
.cx-auth-link {
  color: #818cf8;
  font-weight: 500;
  text-decoration: none;
}

.cx-auth-link:hover {
  color: #a78bfa;
  text-decoration: underline;
}

.cx-auth-footer {
  text-align: center;
  margin-top: var(--cx-space-6);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

/* ── 2FA / OTP Input ──────────────────────────────────────── */
.cx-otp-input {
  display: flex;
  gap: var(--cx-space-3);
  justify-content: center;
  margin: var(--cx-space-6) 0;
}

.cx-otp-digit {
  width: 54px; height: 64px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #fff;
  transition: all 0.2s ease;
}

.cx-otp-digit:focus {
  outline: none;
  border-color: #6366f1;
  background: rgba(99,102,241,0.12);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.2);
}

/* ── Feature pills ────────────────────────────────────────── */
.cx-auth-features {
  display: flex;
  flex-direction: column;
  gap: var(--cx-space-3);
  margin-top: var(--cx-space-8);
}

.cx-auth-feature {
  display: flex;
  align-items: center;
  gap: var(--cx-space-3);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.cx-auth-feature-icon {
  width: 28px; height: 28px;
  background: rgba(99,102,241,0.2);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #818cf8;
  font-size: 0.875rem;
}

/* ── Checkbox in dark context ─────────────────────────────── */
.cx-auth-card .cx-checkbox {
  display: flex;
  align-items: center;
  gap: var(--cx-space-2);
  cursor: pointer;
}

.cx-auth-card .cx-checkbox input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: #6366f1;
  cursor: pointer;
}

.cx-auth-card .cx-checkbox label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  margin: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .cx-auth-left { display: none; }
  .cx-auth-right {
    width: 100%;
    background: #0f0f1a;
    border-left: none;
    padding: 40px 24px;
  }
}

@media (max-width: 480px) {
  .cx-auth-right { padding: 32px 20px; align-items: flex-start; }
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.95); }
}

