/* ═══════════════════════════════════════════════════════
   TradingBot — Auth page styles
   ═══════════════════════════════════════════════════════ */

:root {
  --bg:       #06091a;
  --surface:  #0a0f24;
  --card:     #0d1528;
  --border:   #1a2847;
  --border-h: #253660;
  --primary:  #00d4aa;
  --primary-d:#00a882;
  --danger:   #f43f5e;
  --text:     #dde6f5;
  --text-sub: #8b9fc4;
  --muted:    #4a5878;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* subtle grid pattern */
  background-image:
    linear-gradient(rgba(0,212,170,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Card ──────────────────────────────────────────────── */
.auth-wrap {
  width: 100%;
  max-width: 420px;
  padding: 24px 16px;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #6366f1);
}

/* ── Logo ──────────────────────────────────────────────── */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  justify-content: center;
}

.auth-logo svg { color: var(--primary); }

.auth-logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--text);
}

.auth-logo-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  background: rgba(0,212,170,.12);
  border: 1px solid rgba(0,212,170,.25);
  border-radius: 4px;
  padding: 2px 6px;
}

/* ── Tab switcher ──────────────────────────────────────── */
.auth-tabs {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 8px 0;
  background: none;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}

.auth-tab.active {
  background: var(--primary);
  color: #000;
  font-weight: 600;
}

/* ── Forms ─────────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
  letter-spacing: .3px;
}

.form-group input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,212,170,.15);
}

.form-group input::placeholder { color: var(--muted); }

/* ── Submit button ─────────────────────────────────────── */
.btn-submit {
  margin-top: 4px;
  padding: 11px 0;
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
  letter-spacing: .2px;
}

.btn-submit:hover  { background: var(--primary-d); }
.btn-submit:active { transform: scale(.98); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; }

/* ── Error / success messages ──────────────────────────── */
.auth-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}

.auth-msg.error {
  background: rgba(244,63,94,.1);
  border: 1px solid rgba(244,63,94,.3);
  color: #fb7185;
  display: block;
}

.auth-msg.success {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  color: #4ade80;
  display: block;
}

/* ── Footer note ───────────────────────────────────────── */
.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
