/* ==========================================================================
   TradOpiax — Authentication Pages (Login & Registration)
   Liquid Glassmorphism Redesign — auth-redesign.css
   ========================================================================== */

@import url('liquid-glass.css');

/* ==========================================================================
   Root Variables for Auth
   ========================================================================== */
:root {
  --auth-bg: #030712;
  --auth-panel: rgba(11, 15, 25, 0.85);
  --auth-card-border: var(--glass-border);
  --auth-input-bg: rgba(15, 23, 42, 0.65);
  --auth-input-border: var(--glass-border);
  --auth-input-focus: var(--color-emerald);
  --auth-text: #ffffff;
  --auth-muted: #94a3b8;
  --auth-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--auth-bg);
  color: var(--auth-text);
}

/* ==========================================================================
   Split Layout Architecture
   ========================================================================== */
.auth-root {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
}

.auth-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   Left Panel — Brand & Liquid Trading Showcase
   ========================================================================== */
.auth-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 72px;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.05) 0%, rgba(3, 7, 18, 0.85) 100%);
  border-right: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-emerald), var(--color-cyan), var(--color-purple));
}

.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
  text-decoration: none;
}

.auth-brand-logo-img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(0, 230, 118, 0.5));
}

.auth-brand-logo-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--color-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-brand-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid var(--glass-border-emerald);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 800;
  color: var(--color-emerald);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  box-shadow: var(--glow-emerald);
}

.auth-brand-tagline-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 10px var(--color-emerald);
  animation: pulseDot 2s ease infinite;
}

.auth-brand-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.5vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.auth-brand-headline .hl-green {
  background: linear-gradient(135deg, var(--color-emerald), #00c853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-brand-headline .hl-cyan {
  background: linear-gradient(135deg, var(--color-cyan), #0091ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-brand-sub {
  font-size: 16px;
  color: var(--auth-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 440px;
}

/* Trust Stats Grid */
.auth-trust-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 44px;
}

.auth-trust-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.auth-trust-stat-value span {
  background: linear-gradient(135deg, var(--color-emerald), var(--color-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-trust-stat-label {
  font-size: 12px;
  color: var(--auth-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Glass Feature Pills */
.auth-feature-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  transition: var(--transition-fast);
}

.auth-pill:hover {
  background: rgba(0, 230, 118, 0.12);
  border-color: var(--glass-border-emerald);
  color: #ffffff;
}

/* ==========================================================================
   Right Panel — Liquid Glass Form Container
   ========================================================================== */
.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 48px;
  background: var(--auth-panel);
  backdrop-filter: var(--glass-blur-dense);
  -webkit-backdrop-filter: var(--glass-blur-dense);
  position: relative;
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 440px;
}

.auth-form-header {
  margin-bottom: 28px;
}

.auth-form-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.auth-form-subtitle {
  font-size: 14px;
  color: var(--auth-muted);
  line-height: 1.6;
}

/* Glass Tab Switcher */
.auth-tab-switch {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--auth-transition);
  text-decoration: none;
  text-align: center;
  color: var(--auth-muted);
  background: transparent;
  font-family: inherit;
  display: inline-block;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, var(--color-emerald), #00c853);
  color: #030712;
  box-shadow: var(--glow-emerald);
}

.auth-tab-btn:not(.active):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Password Strength Bar */
.auth-pwd-strength {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  height: 4px;
}

.auth-pwd-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.auth-pwd-bar.weak   { background: #ff2a6d; }
.auth-pwd-bar.fair   { background: #ffb703; }
.auth-pwd-bar.good   { background: #00e5ff; }
.auth-pwd-bar.strong { background: #00e676; box-shadow: var(--glow-emerald); }

/* Forgot Password */
.auth-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
  margin-bottom: 20px;
}

.auth-forgot-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--auth-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.auth-forgot-link:hover {
  color: var(--color-emerald);
}

/* Checkbox Wrappers */
.auth-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  cursor: pointer;
}

.auth-checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-emerald);
  cursor: pointer;
  border-radius: 4px;
}

.auth-checkbox-wrap label {
  font-size: 13px;
  color: var(--auth-muted);
  line-height: 1.5;
  cursor: pointer;
}

.auth-checkbox-wrap label a {
  color: var(--color-emerald);
  font-weight: 700;
  text-decoration: underline;
}

/* Submit Button */
.auth-submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-cyan) 100%);
  color: #030712;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 900;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--auth-transition);
  box-shadow: var(--glow-emerald);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-submit-btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 0 45px rgba(0, 230, 118, 0.6);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Social Login Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

/* Google Sign-in Block */
.google-signin-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition-fast);
}

.google-signin-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.google-signin-icon {
  width: 20px;
  height: 20px;
}

.google-auth-hint {
  font-size: 12px;
  color: var(--auth-muted);
  text-align: center;
  margin-top: 10px;
}

/* Auth Footer */
.auth-form-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--auth-muted);
}

.auth-form-footer a {
  color: var(--color-emerald);
  font-weight: 800;
  text-decoration: none;
}

/* Responsive Split */
@media (max-width: 1024px) {
  .auth-split {
    grid-template-columns: 1fr;
  }
  .auth-brand-panel {
    display: none;
  }
  .auth-form-panel {
    padding: 60px 24px;
  }
}
