/* ============================================================
   TRUST CHAIN COMMUNITY — Shared Auth Styles
   Color Theme: SingWorldFX (Dark Navy + Cyan + Green)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  /* ── Primary Accent: Cyan (SingWorldFX teal) ── */
  --cyan:           #00d4ff;
  --cyan-light:     #60eaff;
  --cyan-dark:      #0099cc;
  --cyan-glow:      rgba(0, 212, 255, 0.20);
  --cyan-glow-soft: rgba(0, 212, 255, 0.08);

  /* ── Secondary Accent: Green (positive / CTA) ── */
  --green:          #00e676;
  --green-dark:     #00b85c;
  --green-glow:     rgba(0, 230, 118, 0.20);

  /* ── Danger ── */
  --red:            #ff3d57;
  --red-soft:       rgba(255, 61, 87, 0.12);

  /* ── Background layers (SingWorldFX deep navy) ── */
  --bg-darkest:     #050a12;
  --bg-dark:        #080e1a;
  --bg-card:        rgba(8, 16, 32, 0.80);
  --bg-input:       rgba(4, 10, 22, 0.70);

  /* ── Borders ── */
  --border:         rgba(0, 212, 255, 0.15);
  --border-hover:   rgba(0, 212, 255, 0.45);
  --border-card:    rgba(0, 212, 255, 0.12);

  /* ── Text ── */
  --text-main:      #e8f4ff;
  --text-dim:       #8ca8c8;
  --text-muted:     #4a6580;
  --text-white:     #ffffff;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-darkest);
  color: var(--text-main);
  overflow-x: hidden;
}

/* ══════════════════════════════════════════
   BACKGROUND — deep navy with cyan glow
══════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%,  rgba(0,212,255,.10) 0%, transparent 65%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(0,212,255,.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 0%   80%,  rgba(0,230,118,.04) 0%, transparent 60%),
    url('../dashboard/back.jpg') center/cover no-repeat;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background: rgba(5, 10, 18, 0.78);
}

/* ══════════════════════════════════════════
   TICKER BAR — exactly like SingWorldFX
══════════════════════════════════════════ */
.ticker-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 38px;
  background: rgba(5, 10, 18, 0.96);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  overflow: hidden;
}
.ticker-track {
  display: flex; gap: 52px;
  animation: tickerMove 32s linear infinite;
  white-space: nowrap;
  padding-left: 100%;
}
.ticker-item {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .4px;
  display: flex; align-items: center; gap: 8px;
}
.ticker-item .sym   { color: var(--text-white); }
.ticker-item .price { color: var(--text-dim); }
.ticker-item .up    { color: var(--cyan); }
.ticker-item .dn    { color: var(--red); }
@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   PAGE WRAPPER
══════════════════════════════════════════ */
.auth-page {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 58px 16px 32px;
}

/* ══════════════════════════════════════════
   CARD
══════════════════════════════════════════ */
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 38px 34px 34px;
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(0,212,255,.06),
    0 20px 60px rgba(0,0,0,.70),
    0 0 100px rgba(0,212,255,.05),
    inset 0 1px 0 rgba(0,212,255,.08);
  animation: cardIn .5s cubic-bezier(.22,1,.36,1) both;
}
@keyframes cardIn {
  from { opacity:0; transform:translateY(22px) scale(.97); }
  to   { opacity:1; transform:none; }
}

/* ══════════════════════════════════════════
   LOGO
══════════════════════════════════════════ */
.auth-logo {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 28px; gap: 10px;
}
.auth-logo img { width: 130px; }

.auth-logo-badge {
  display: flex; align-items: center; gap: 7px;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 20px;
  padding: 3px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.8px; color: var(--cyan);
  text-transform: uppercase;
}
.auth-logo-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

/* ══════════════════════════════════════════
   SECTION TITLE
══════════════════════════════════════════ */
.auth-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 21px; font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-white);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.auth-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(0,212,255,.30), transparent);
}

/* ══════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════ */
.form-space { display: flex; flex-direction: column; gap: 14px; }
.form-group { position: relative; }

.input-label {
  display: block;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 1px; color: var(--text-muted);
  margin-bottom: 5px; text-transform: uppercase;
}

.input-wrap { position: relative; }
.input-wrap .icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: rgba(0,212,255,.30);
  font-size: 13px; pointer-events: none;
  transition: color .2s;
}
.input-wrap:focus-within .icon { color: var(--cyan); }

.auth-input {
  width: 100%;
  height: 50px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 16px 0 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-main);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-input::placeholder { color: var(--text-muted); }
.auth-input:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(0,212,255,.04);
  box-shadow:
    0 0 0 3px rgba(0,212,255,.10),
    0 0 18px rgba(0,212,255,.12);
}
.auth-input[readonly] {
  color: var(--cyan);
  cursor: default;
  border-color: rgba(0,212,255,.10);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ══════════════════════════════════════════
   BUTTON — Green→Cyan (SingWorldFX "Get Started")
══════════════════════════════════════════ */
.btn-primary {
  width: 100%; height: 52px;
  border: none; cursor: pointer;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 45%, var(--cyan) 100%);
  color: #050a12;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,230,118,.30);
  transition: box-shadow .25s, transform .15s;
  margin-top: 4px;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.22) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform .5s ease;
}
.btn-primary:hover {
  box-shadow: 0 6px 36px rgba(0,230,118,.45), 0 0 20px rgba(0,212,255,.20);
  transform: translateY(-1px);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:active { transform: translateY(0); }

/* ══════════════════════════════════════════
   FOOTER LINKS
══════════════════════════════════════════ */
.auth-links {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--border);
}
.auth-links a {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  transition: color .2s;
  display: flex; align-items: center; gap: 5px;
}
.auth-links a:hover { color: var(--cyan); }

/* ══════════════════════════════════════════
   ALERTS
══════════════════════════════════════════ */
.auth-alert {
  padding: 10px 14px; border-radius: 8px;
  font-size: 13px; margin-bottom: 14px;
  border: 1px solid;
  display: flex; align-items: center; gap: 8px;
}
.auth-alert.error {
  background: var(--red-soft);
  border-color: rgba(255,61,87,.30);
  color: #ff7a8a;
}
.auth-alert.success {
  background: rgba(0,230,118,.08);
  border-color: rgba(0,230,118,.30);
  color: #4dffb0;
}

/* ══════════════════════════════════════════
   STATS ROW (Login page)
══════════════════════════════════════════ */
.stat-row {
  display: flex;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.stat-item {
  flex: 1; padding: 10px 0; text-align: center;
  border-right: 1px solid var(--border);
  background: rgba(0,212,255,.03);
  transition: background .2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(0,212,255,.07); }
.stat-val {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px; font-weight: 700;
  color: var(--cyan);
}
.stat-lbl {
  font-size: 9.5px; color: var(--text-muted);
  letter-spacing: .6px; margin-top: 2px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .auth-card   { padding: 26px 18px 22px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .auth-links  { justify-content: center; gap: 14px; }
}