/* auth-style.css — Shared auth page styles aligned with Eurobillr landing page */

/* ── Fonts (preconnect in HTML) ── */
/* Syne for headings, DM Sans for body — same as index.php */

:root {
  --ink: #0a0f1e;
  --ink-2: #111827;
  --ink-3: #1f2937;
  --slate: #374151;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --border: rgba(255,255,255,0.08);
  --border-solid: #1f2937;
  --electric: #3b82f6;
  --electric-dim: #1d4ed8;
  --electric-glow: rgba(59,130,246,0.25);
  --mint: #10b981;
  --violet: #8b5cf6;
  --amber: #f59e0b;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.07);
  --white: #ffffff;
  --danger: #ef4444;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--ink);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Noise overlay like landing page */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; line-height: 1.2; }

/* ── Nav ── */
.auth-nav {
  position: relative; z-index: 10;
  padding: 1rem 0;
  background: rgba(10,15,30,0.6);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.auth-nav .container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.auth-nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem;
  color: var(--white); text-decoration: none;
}
.auth-nav-logo img { height: 28px; border-radius: 6px; }
.auth-nav-link {
  padding: 0.4rem 1rem; border-radius: 8px;
  border: 1px solid var(--border); background: transparent;
  color: var(--muted-2); font-size: 0.85rem; font-weight: 500;
  text-decoration: none; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.auth-nav-link:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }

/* ── Main container ── */
.auth-container {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 1rem; position: relative; z-index: 1;
}

/* Background orbs like landing hero */
.auth-orb {
  position: fixed; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: 0;
}
.auth-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
  top: -200px; right: -150px;
}
.auth-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
  bottom: -100px; left: -100px;
}

/* ── Auth Card (split layout for login/register) ── */
.auth-card {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 920px;
  display: flex;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}

/* Left panel (features/branding) */
.auth-left {
  flex: 0 0 380px;
  padding: 2.5rem;
  background: linear-gradient(145deg, rgba(59,130,246,0.12), rgba(139,92,246,0.08));
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
}
.auth-left h2 {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--white);
}
.auth-left .subtitle { font-size: 0.9rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.55; }

.auth-feature {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.8rem 1rem; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  margin-bottom: 0.65rem; transition: all 0.2s;
}
.auth-feature:hover { border-color: rgba(255,255,255,0.15); }
.auth-feature-icon {
  width: 38px; height: 38px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0;
}
.auth-feature-text { font-size: 0.84rem; font-weight: 500; color: var(--muted-2); }
.auth-feature-text strong { color: var(--white); font-weight: 600; }

.auth-left-trial {
  margin-top: 1.5rem; padding: 0.85rem 1rem; border-radius: 10px;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25);
  text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--mint);
}

/* Right panel (form) */
.auth-right {
  flex: 1; padding: 2.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-right h2 {
  font-size: 1.35rem; font-weight: 700; color: var(--white); margin-bottom: 0.35rem;
}
.auth-right .auth-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.5rem; }

/* ── Single-panel card (forgot/reset password) ── */
.auth-card-single {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
  padding: 2.5rem;
}
.auth-card-single .auth-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(139,92,246,0.15));
  color: var(--electric); border: 1px solid rgba(59,130,246,0.3);
}
.auth-card-single h2 { font-size: 1.3rem; font-weight: 700; text-align: center; margin-bottom: 0.35rem; }
.auth-card-single .auth-sub { font-size: 0.88rem; color: var(--muted); text-align: center; margin-bottom: 1.75rem; }

/* ── Form elements ── */
.auth-label {
  font-size: 0.82rem; font-weight: 600; color: var(--muted-2);
  margin-bottom: 0.35rem; display: block;
}
.auth-input {
  width: 100%; padding: 0.75rem 1rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--surface); color: var(--white);
  font-size: 0.9rem; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
.auth-input::placeholder { color: var(--muted); }
.auth-input:focus {
  outline: none; border-color: var(--electric);
  box-shadow: 0 0 0 3px var(--electric-glow);
  background: rgba(255,255,255,0.06);
}
.auth-input-group {
  display: flex; align-items: center;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  background: var(--surface); transition: all 0.2s; overflow: hidden;
}
.auth-input-group:focus-within {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px var(--electric-glow);
}
.auth-input-group .input-icon {
  padding: 0 0.85rem; color: var(--muted); font-size: 0.85rem; flex-shrink: 0;
}
.auth-input-group .auth-input {
  border: none; background: transparent; box-shadow: none;
}
.auth-input-group .auth-input:focus { box-shadow: none; }

.auth-select {
  width: 100%; padding: 0.75rem 1rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--ink-3); color: var(--white);
  font-size: 0.9rem; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s; appearance: auto;
}
.auth-select:focus { outline: none; border-color: var(--electric); box-shadow: 0 0 0 3px var(--electric-glow); }
.auth-select option { background: var(--ink-2); color: var(--white); }

.form-hint { font-size: 0.75rem; color: var(--muted); margin-top: 0.3rem; }

.field-group { margin-bottom: 1.1rem; }

/* ── Buttons ── */
.btn-auth-primary {
  width: 100%; padding: 0.85rem; border-radius: 10px;
  background: var(--electric); color: var(--white);
  font-size: 0.95rem; font-weight: 600; font-family: 'DM Sans', sans-serif;
  border: none; cursor: pointer; transition: all 0.25s;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  box-shadow: 0 4px 20px var(--electric-glow);
}
.btn-auth-primary:hover {
  background: var(--electric-dim); transform: translateY(-1px);
  box-shadow: 0 6px 30px rgba(59,130,246,0.4);
}
.btn-auth-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-auth-outline {
  width: 100%; padding: 0.8rem; border-radius: 10px;
  background: transparent; color: var(--muted-2);
  font-size: 0.9rem; font-weight: 500; font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--border); cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  text-decoration: none;
}
.btn-auth-outline:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }

/* OAuth buttons */
.btn-oauth {
  width: 100%; padding: 0.8rem; border-radius: 10px;
  background: var(--surface); color: var(--muted-2);
  border: 1px solid var(--border); font-size: 0.9rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 0.65rem;
  text-decoration: none; cursor: pointer; transition: all 0.2s;
  margin-bottom: 0.6rem;
}
.btn-oauth:hover { color: var(--white); border-color: rgba(255,255,255,0.2); background: var(--surface-2); }
.btn-oauth img { width: 18px; height: 18px; }

/* Divider */
.auth-divider {
  display: flex; align-items: center; margin: 1.25rem 0; color: var(--muted);
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-divider span { padding: 0 0.85rem; font-size: 0.8rem; font-weight: 500; }

/* ── Alerts ── */
.auth-alert {
  padding: 0.75rem 1rem; border-radius: 10px; margin-bottom: 1rem;
  font-size: 0.84rem; display: flex; align-items: flex-start; gap: 0.6rem;
}
.auth-alert i { flex-shrink: 0; margin-top: 2px; }
.auth-alert-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; }
.auth-alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); color: #6ee7b7; }
.auth-alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25); color: #93c5fd; }
.auth-alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25); color: #fcd34d; }

/* ── Checkbox ── */
.auth-check {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.84rem; color: var(--muted-2); cursor: pointer;
}
.auth-check input[type="checkbox"] {
  width: 16px; height: 16px; border-radius: 4px;
  accent-color: var(--electric);
}

/* ── Links ── */
.auth-link { color: var(--electric); text-decoration: none; font-weight: 500; font-size: 0.84rem; transition: color 0.15s; }
.auth-link:hover { color: #60a5fa; }

.auth-footer-text { text-align: center; font-size: 0.84rem; color: var(--muted); margin-top: 1.5rem; }
.auth-footer-text a { color: var(--electric); text-decoration: none; font-weight: 600; }
.auth-footer-text a:hover { color: #60a5fa; }

/* ── Row helpers ── */
.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }

/* ── Password strength ── */
.pw-strength-bar { height: 3px; border-radius: 2px; margin-top: 6px; transition: all 0.3s; background: var(--ink-3); overflow: hidden; }
.pw-strength-fill { height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s; }
.pw-strength-fill.weak { background: var(--danger); width: 25%; }
.pw-strength-fill.fair { background: var(--amber); width: 50%; }
.pw-strength-fill.good { background: #eab308; width: 75%; }
.pw-strength-fill.strong { background: var(--mint); width: 100%; }

.pw-reqs { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.pw-reqs li { font-size: 0.78rem; color: var(--muted); margin-bottom: 2px; display: flex; align-items: center; gap: 0.4rem; }
.pw-reqs li i { width: 14px; text-align: center; font-size: 0.7rem; }
.pw-reqs li.valid { color: var(--mint); }
.pw-reqs li.invalid { color: var(--danger); }

/* ── Security strip ── */
.auth-security {
  display: flex; justify-content: center; gap: 2rem;
  margin-top: 1.75rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.auth-security-item { text-align: center; color: var(--muted); font-size: 0.75rem; }
.auth-security-item i { display: block; font-size: 1.1rem; color: var(--electric); margin-bottom: 0.3rem; opacity: 0.6; }

/* ── Footer ── */
.auth-page-footer {
  padding: 1.25rem 0; text-align: center; font-size: 0.78rem; color: var(--muted);
  border-top: 1px solid var(--border); position: relative; z-index: 1;
}
.auth-page-footer a { color: var(--muted-2); text-decoration: none; }
.auth-page-footer a:hover { color: var(--white); }

/* ── 2FA Promotion (login page specific) ── */
.twofa-promo {
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.06));
  border: 1px solid rgba(59,130,246,0.2); border-radius: 10px;
  padding: 0.85rem 1rem; margin: 1rem 0; position: relative;
  font-size: 0.82rem; color: var(--muted-2); transition: all 0.3s;
}
.twofa-promo strong { color: var(--electric); }
.twofa-promo .dismiss-btn {
  position: absolute; top: 8px; right: 8px; background: none; border: none;
  color: var(--muted); cursor: pointer; font-size: 0.75rem; padding: 2px 6px;
}
.twofa-promo .dismiss-btn:hover { color: var(--white); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .auth-card { flex-direction: column; max-width: 500px; }
  .auth-left { flex: none; padding: 1.75rem; border-right: none; border-bottom: 1px solid var(--border); }
  .auth-left h2 { font-size: 1.25rem; }
  .auth-right { padding: 1.75rem; }
  .auth-card-single { padding: 1.75rem; }
  .auth-security { gap: 1.25rem; flex-wrap: wrap; }
  .auth-nav .container { padding: 0 1rem; }
}

@media (max-width: 576px) {
  .auth-container { padding: 1.5rem 0.75rem; }
  .auth-left { padding: 1.25rem; }
  .auth-left h2 { font-size: 1.1rem; }
  .auth-feature { padding: 0.6rem 0.75rem; }
  .auth-right { padding: 1.25rem; }
  .auth-right h2 { font-size: 1.15rem; }
  .auth-card-single { padding: 1.25rem; }
  .auth-card-single h2 { font-size: 1.1rem; }
  .auth-input { padding: 0.65rem 0.85rem; font-size: 0.85rem; }
  .btn-auth-primary { padding: 0.75rem; font-size: 0.88rem; }
  .auth-security { gap: 1rem; }
  .auth-security-item { font-size: 0.7rem; }
}