/* =========================================================
   FlowCash — Shared App Styles (auth pages)
   ========================================================= */

:root {
  --bg:          #0d1b2a;
  --card:        #122336;
  --card2:       #1a3050;
  --accent:      #00d4aa;
  --accent-dark: #00b38a;
  --text:        #dceefa;
  --muted:       #6a8fa8;
  --border:      #1e3a52;
  --danger:      #ff4757;
  --warning:     #ffad08;
  --radius:      12px;
  --shadow:      0 8px 32px rgba(0,0,0,.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(ellipse 70% 60% at 5% 70%,  rgba(0,212,170,.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 95% 20%, rgba(0,120,255,.07) 0%, transparent 55%);
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* ── Auth Wrapper ─────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 430px;
  padding: 44px 40px;
}

/* ── Logo ─────────────────────────────────────────────── */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.auth-logo-icon {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #0d1b2a;
  font-size: 18px;
  font-weight: 900;
}

.auth-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}
.auth-logo-text span { color: var(--accent); }

/* ── Headings ─────────────────────────────────────────── */
.auth-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 30px;
}

/* ── Alert ────────────────────────────────────────────── */
.auth-alert {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
  align-items: center;
  gap: 8px;
}
.auth-alert.error   { background: rgba(255,71,87,.13);  border: 1px solid rgba(255,71,87,.3);  color: #ff6b7a; display: flex; }
.auth-alert.success { background: rgba(0,212,170,.10);  border: 1px solid rgba(0,212,170,.3);  color: var(--accent); display: flex; }

/* ── Form Controls ────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.form-control {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,170,.15);
}
.form-control::placeholder { color: #2e4d66; }
.form-control.error-field  { border-color: var(--danger); }

.input-wrap           { position: relative; }
.input-wrap .form-control { padding-right: 44px; }

.input-icon {
  position: absolute;
  right: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  transition: color .2s;
  user-select: none;
}
.input-icon:hover { color: var(--accent); }

.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; }

/* ── Buttons ──────────────────────────────────────────── */
.btn-full {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #0d1b2a;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.btn-full:hover    { background: var(--accent-dark); }
.btn-full:active   { transform: scale(.99); }
.btn-full:disabled { opacity: .6; cursor: not-allowed; }

/* ── Password Strength ────────────────────────────────── */
.strength-wrap { margin-top: 8px; }
.strength-bar  {
  height: 4px; background: var(--border); border-radius: 2px; overflow: hidden;
}
.strength-fill {
  height: 100%; border-radius: 2px;
  transition: width .3s, background .3s;
  width: 0%;
}
.strength-label { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ── Spinner ──────────────────────────────────────────── */
.spinner {
  width: 17px; height: 17px;
  border: 2px solid rgba(13,27,42,.4);
  border-top-color: #0d1b2a;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Checkbox ─────────────────────────────────────────── */
.form-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); cursor: pointer;
}
.form-check input[type=checkbox] {
  accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer;
}

/* ── Footer ───────────────────────────────────────────── */
.auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 22px;
}
.auth-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 12px; margin: 20px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

@media (max-width: 480px) {
  .auth-card { padding: 24px 16px; }
  .auth-wrap  { padding: 12px; }
}
@media (max-width: 380px) {
  .auth-card { padding: 18px 12px; }
  .auth-logo-text { font-size: 20px; }
  .auth-card h1 { font-size: 20px; }
  .auth-input { font-size: 14px; padding: 11px 12px; }
  .auth-btn   { font-size: 14px; padding: 13px; }
}
