/* ============================================
   WinTradely — Auth Pages (Login + Sign Up)
   Premium Redesign — auth-redesign.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* ---- Root Overrides for Auth Pages ---- */
:root {
  --auth-green: #00e676;
  --auth-green-dim: rgba(0,230,118,0.15);
  --auth-cyan: #00e5ff;
  --auth-purple: #9c5fff;
  --auth-bg: #080c14;
  --auth-panel: rgba(15,20,35,0.97);
  --auth-card: rgba(255,255,255,0.05);
  --auth-card-border: rgba(255,255,255,0.10);
  --auth-input-bg: rgba(255,255,255,0.06);
  --auth-input-border: rgba(255,255,255,0.12);
  --auth-input-focus: rgba(0,230,118,0.5);
  --auth-text: #f0f4ff;
  --auth-muted: #7a8aaa;
  --auth-transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* ---- Page Reset ---- */
html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.auth-root {
  min-height: 100vh;
  background: var(--auth-bg);
  display: flex;
  position: relative;
  overflow: hidden;
}

/* ---- Animated Background Orbs ---- */
.auth-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: orbFloat 12s ease-in-out infinite;
}

.auth-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00e676, transparent 70%);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.auth-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #9c5fff, transparent 70%);
  bottom: -80px;
  right: -80px;
  animation-delay: -6s;
}

.auth-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #00e5ff, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -3s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  33% { transform: translateY(-40px) scale(1.05); }
  66% { transform: translateY(25px) scale(0.95); }
}

/* ---- Grid Overlay ---- */
.auth-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ============================================================
   SPLIT LAYOUT
   ============================================================ */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ---- LEFT PANEL — Brand Showcase ---- */
.auth-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 64px;
  background: linear-gradient(145deg, rgba(0,230,118,0.06) 0%, rgba(10,15,30,0.9) 100%);
  border-right: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
}

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

.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 56px;
  animation: fadeSlideUp 0.6s ease both;
  text-decoration: none;
}

.auth-brand-logo-img {
  height: 44px;
  width: auto;
}

.auth-brand-logo-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff, #00e676);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-brand-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--auth-green-dim);
  border: 1px solid rgba(0,230,118,0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--auth-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  animation: fadeSlideUp 0.7s ease both;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.auth-brand-headline {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -1px;
  animation: fadeSlideUp 0.8s ease both;
}

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

.auth-brand-headline .hl-cyan {
  background: linear-gradient(135deg, #00e5ff, #0095ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-brand-sub {
  font-size: 16px;
  color: var(--auth-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 380px;
  animation: fadeSlideUp 0.9s ease both;
}

/* ---- Trust Stats Row ---- */
.auth-trust-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeSlideUp 1.0s ease both;
}

.auth-trust-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-trust-stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.auth-trust-stat-value span {
  background: linear-gradient(135deg, #00e676, #00e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ---- Animated Chart Preview ---- */
.auth-chart-preview {
  width: 100%;
  max-width: 440px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 20px;
  animation: fadeSlideUp 1.1s ease both;
}

.auth-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.auth-chart-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.auth-chart-flags {
  display: flex;
  gap: -4px;
  font-size: 20px;
}

.auth-chart-price-wrap {
  text-align: right;
}

.auth-chart-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--auth-green);
  font-variant-numeric: tabular-nums;
}

.auth-chart-change {
  font-size: 11px;
  color: var(--auth-green);
  font-weight: 600;
  background: var(--auth-green-dim);
  border-radius: 50px;
  padding: 2px 8px;
  display: inline-block;
}

.auth-chart-canvas-wrap {
  height: 100px;
  position: relative;
  overflow: hidden;
}

.auth-chart-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ---- Feature Pills ---- */
.auth-feature-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  animation: fadeSlideUp 1.2s ease both;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #c8d4f0;
  transition: all 0.25s ease;
}

.auth-pill:hover {
  background: rgba(0,230,118,0.12);
  border-color: rgba(0,230,118,0.3);
  color: #fff;
}

.auth-pill-icon {
  font-size: 16px;
}

/* ============================================================
   RIGHT PANEL — Auth Form
   ============================================================ */
.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 48px;
  background: var(--auth-panel);
  position: relative;
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 420px;
  animation: fadeSlideRight 0.7s ease both;
}

@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.auth-form-title {
  font-size: 30px;
  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;
}

/* ---- Tab Switch ---- */
.auth-tab-switch {
  display: flex;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 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, #00e676, #00c853);
  color: #0a1500;
  box-shadow: 0 4px 20px rgba(0,230,118,0.35);
}

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

/* ---- Form Fields ---- */
.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #a0b0c8;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.auth-field-input-wrap {
  position: relative;
}

.auth-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s;
}

.auth-field-input-wrap:focus-within .auth-field-icon {
  opacity: 1;
}

.auth-input, .auth-select {
  width: 100%;
  background: var(--auth-input-bg);
  border: 1px solid var(--auth-input-border);
  border-radius: 12px;
  padding: 14px 14px 14px 44px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  font-family: inherit;
  transition: all var(--auth-transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.auth-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8aaa' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.auth-input::placeholder {
  color: rgba(255,255,255,0.25);
}

.auth-input:focus, .auth-select:focus {
  border-color: var(--auth-green);
  background: rgba(0,230,118,0.06);
  box-shadow: 0 0 0 3px rgba(0,230,118,0.12);
}

.auth-select option {
  background: #111827;
  color: #fff;
}

/* Password Toggle */
.auth-pwd-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--auth-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  font-size: 18px;
  transition: color 0.2s;
}

.auth-pwd-toggle:hover {
  color: var(--auth-green);
}

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

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

.auth-pwd-bar.weak   { background: #ff4b4b; }
.auth-pwd-bar.fair   { background: #ff9500; }
.auth-pwd-bar.good   { background: #00c853; }
.auth-pwd-bar.strong { background: #00e676; }

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

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

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

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

.auth-checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--auth-green);
  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(--auth-green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(0,230,118,0.3);
}

/* ---- Submit Button ---- */
.auth-submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #00e676, #00c853);
  color: #0a1a00;
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all var(--auth-transition);
  box-shadow: 0 6px 24px rgba(0,230,118,0.35);
  position: relative;
  overflow: hidden;
  font-family: inherit;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,230,118,0.45);
}

.auth-submit-btn:hover::after {
  opacity: 1;
}

.auth-submit-btn:active {
  transform: translateY(0);
}

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

/* ---- Social Login ---- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: rgba(255,255,255,0.2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.auth-divider span {
  color: var(--auth-muted);
  white-space: nowrap;
}

.auth-social-row {
  display: flex;
  gap: 10px;
}

.auth-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--auth-input-bg);
  border: 1px solid var(--auth-input-border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-text);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  text-decoration: none;
}

.auth-social-btn:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.20);
  transform: translateY(-2px);
}

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

.auth-form-footer a {
  color: var(--auth-green);
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.auth-form-footer a:hover {
  opacity: 0.8;
}

/* ---- Bonus Referral Banner ---- */
.auth-bonus-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(0,230,118,0.1), rgba(0,229,255,0.08));
  border: 1px solid rgba(0,230,118,0.25);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  animation: bonusPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes bonusPop {
  from { opacity: 0; transform: scale(0.9) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-bonus-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.auth-bonus-text {
  flex: 1;
}

.auth-bonus-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--auth-green);
  margin-bottom: 2px;
}

.auth-bonus-sub {
  font-size: 12px;
  color: var(--auth-muted);
}

/* ---- Notification Toast ---- */
.auth-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.auth-toast-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  pointer-events: all;
  animation: toastIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  backdrop-filter: blur(20px);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(60px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.auth-toast-success { background: linear-gradient(135deg, rgba(0,200,83,0.9), rgba(0,230,118,0.9)); color: #0a1500; }
.auth-toast-error   { background: linear-gradient(135deg, rgba(255,23,68,0.9), rgba(255,82,82,0.9)); color: #fff; }
.auth-toast-info    { background: linear-gradient(135deg, rgba(0,149,255,0.9), rgba(51,170,255,0.9)); color: #fff; }

/* ============================================================
   FORGOT PASSWORD MODAL
   ============================================================ */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.auth-modal-overlay.open {
  display: flex;
}

.auth-modal-box {
  background: #111828;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 36px;
  max-width: 440px;
  width: 90%;
  position: relative;
  animation: modalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.07);
  border: none;
  color: var(--auth-muted);
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.auth-modal-close:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.auth-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--auth-green-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.auth-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

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

/* ============================================================
   WELCOME PAGE MINI-NAVBAR (overrides styles.css navbar)
   ============================================================ */
.wt-navbar-new {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  z-index: 1000;
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.wt-navbar-new.scrolled {
  background: rgba(8,12,20,0.97);
  border-bottom-color: rgba(0,230,118,0.15);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .auth-brand-panel {
    padding: 48px 40px;
  }

  .auth-brand-headline {
    font-size: 34px;
  }

  .auth-form-panel {
    padding: 48px 32px;
  }
}

@media (max-width: 768px) {
  .auth-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-form-panel {
    min-height: 100vh;
    padding: 40px 24px;
  }

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

  /* Show a mini brand header on mobile */
  .auth-mobile-brand {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
  }

  .auth-mobile-brand-img {
    height: 36px;
  }

  .auth-mobile-brand-name {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #00e676);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

.auth-mobile-brand {
  display: none;
}

@media (max-width: 480px) {
  .auth-form-panel {
    padding: 32px 20px;
  }

  .auth-brand-headline {
    font-size: 28px;
  }

  .auth-social-row {
    flex-direction: column;
  }

  .auth-trust-stats {
    gap: 16px;
  }
}
