/* ============================================================
   Coin Master COMMUNITY — Shared Auth Styles
   Color Theme: Premium Dark + Gold
   ============================================================ */

@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: Gold ── */
  --gold: #f4c053;
  --gold-light: #f7d383;
  --gold-dark: #d9a032;
  --gold-glow: rgba(244, 192, 83, 0.20);
  --gold-glow-soft: rgba(244, 192, 83, 0.08);

  /* ── Secondary Accent: Pink/Purple or Green ── */
  --green: #34c759;
  --green-dark: #28a745;
  --green-glow: rgba(52, 199, 89, 0.20);

  /* ── Danger ── */
  --red: #ff2a6d;
  --red-soft: rgba(255, 42, 109, 0.12);

  /* ── Background layers (Coin Master Dark) ── */
  --bg-darkest: #0b0e14;
  --bg-dark: #11141e;
  --bg-card: rgba(28, 31, 46, 0.85);
  /* #1c1f2e somewhat transparent */
  --bg-input: rgba(17, 20, 30, 0.80);

  /* ── Borders ── */
  --border: rgba(244, 192, 83, 0.15);
  --border-hover: rgba(244, 192, 83, 0.45);
  --border-card: rgba(44, 49, 68, 0.8);

  /* ── Text ── */
  --text-main: #ffffff;
  --text-dim: #cbd0df;
  --text-muted: #8b92a5;
  --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(244, 192, 83, .10) 0%, transparent 65%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(244, 192, 83, .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(--gold);
}

.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(244, 192, 83, .06),
    0 20px 60px rgba(0, 0, 0, .70),
    0 0 100px rgba(244, 192, 83, .05),
    inset 0 1px 0 rgba(244, 192, 83, .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(244, 192, 83, 0.07);
  border: 1px solid rgba(244, 192, 83, 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(--gold);
  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(244, 192, 83, .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(244, 192, 83, .30);
  font-size: 13px;
  pointer-events: none;
  transition: color .2s;
}

.input-wrap:focus-within .icon {
  color: var(--gold);
}

.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(--gold);
  background: rgba(244, 192, 83, .04);
  box-shadow:
    0 0 0 3px rgba(244, 192, 83, .10),
    0 0 18px rgba(244, 192, 83, .12);
}

.auth-input[readonly] {
  color: var(--gold);
  cursor: default;
  border-color: rgba(244, 192, 83, .10);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ══════════════════════════════════════════
   BUTTON — Coin Master Gold
══════════════════════════════════════════ */
.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(--gold-dark) 0%, var(--gold) 45%, var(--gold-light) 100%);
  color: #050a12;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px var(--gold-glow);
  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(244, 192, 83, .45), 0 0 20px rgba(244, 192, 83, .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(--gold);
}

/* ══════════════════════════════════════════
   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(244, 192, 83, .03);
  transition: background .2s;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: rgba(244, 192, 83, .07);
}

.stat-val {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
}

.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;
  }
}