
/* ── VARIABLES ─────────────────────────────── */
:root {
  --bg:      #050810;
  --surface: #0d1117;
  --surface2:#111827;
  --border:  rgba(99,179,237,.14);
  --border2: rgba(99,179,237,.28);
  --accent:  #00d4ff;
  --green:   #10b981;
  --green2:  #059669;
  --red:     #ef4444;
  --text:    #e2e8f0;
  --muted:   #64748b;
  --mono:    'JetBrains Mono', monospace;
  --ui:      'Rajdhani', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg); color: var(--text);
  font-family: var(--ui); min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

/* ── BACKGROUND ────────────────────────────── */
.bg-orb {
  position: fixed; border-radius: 50%; pointer-events: none; filter: blur(80px);
}
.orb1 {
  width: 500px; height: 500px; top: -200px; left: -150px;
  background: radial-gradient(circle, rgba(0,212,255,.08) 0%, transparent 70%);
}
.orb2 {
  width: 400px; height: 400px; bottom: -150px; right: -100px;
  background: radial-gradient(circle, rgba(16,185,129,.07) 0%, transparent 70%);
}
.orb3 {
  width: 300px; height: 300px; top: 40%; left: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.05) 0%, transparent 70%);
}

/* Grid lines background */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(99,179,237,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,179,237,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── LAYOUT ────────────────────────────────── */
.login-wrapper {
  display: flex; width: 100%; max-width: 900px;
  min-height: 540px; margin: 20px;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(0,212,255,.06);
  position: relative; z-index: 1;
}

/* ── LEFT PANEL ────────────────────────────── */
.login-left {
  flex: 1; background: linear-gradient(135deg, #050d1f 0%, #0a1628 50%, #050f1a 100%);
  padding: 48px 40px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.login-left::before {
  content: ''; position: absolute; top: -80px; left: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,.1) 0%, transparent 70%);
  pointer-events: none;
}
.login-left::after {
  content: ''; position: absolute; bottom: -60px; right: -40px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,.08) 0%, transparent 70%);
  pointer-events: none;
}

.brand { position: relative; z-index: 1; }
.brand-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(0,212,255,.1); border: 1px solid rgba(0,212,255,.2);
  color: var(--accent); padding: 5px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 20px;
}
.brand-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.3} }

.brand h1 { font-size: 32px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.brand h1 em { color: var(--accent); font-style: normal; display: block; }
.brand p { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 280px; }

.features { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.feature {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  font-size: 13px; color: var(--muted); transition: all .2s;
}
.feature:hover { background: rgba(255,255,255,.07); border-color: var(--border2); color: var(--text); }
.feature i { color: var(--accent); width: 16px; text-align: center; font-size: 13px; }

.left-footer { position: relative; z-index: 1; }
.left-footer p { font-size: 11px; color: var(--muted); font-family: var(--mono); }

/* ── RIGHT PANEL ───────────────────────────── */
.login-right {
  width: 400px; flex-shrink: 0;
  background: var(--surface);
  padding: 48px 40px;
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid var(--border);
}

.login-logo-wrap { text-align: center; margin-bottom: 28px; }
.login-logo {
  width: 60px; height: 60px; border-radius: 16px;
  border: 2px solid rgba(0,212,255,.2);
  box-shadow: 0 8px 24px rgba(0,212,255,.15);
  margin-bottom: 14px;
}
.login-logo-wrap h2 { font-size: 20px; font-weight: 800; }
.login-logo-wrap p { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Form */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 11px; color: var(--muted);
  font-weight: 700; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 6px;
}
.input-wrap { position: relative; }
.input-wrap .fi {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 13px; pointer-events: none; transition: color .2s;
}
.input-wrap input {
  width: 100%; padding: 12px 40px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 14px;
  font-family: var(--ui); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input-wrap input::placeholder { color: var(--muted); }
.input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,.1);
  background: #131e2f;
}
.input-wrap input:focus ~ .fi,
.input-wrap:has(input:focus) .fi { color: var(--accent); }
.toggle-pass {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); cursor: pointer; font-size: 13px; transition: color .2s;
}
.toggle-pass:hover { color: var(--text); }

/* Error */
.error-box {
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25);
  color: var(--red); padding: 10px 14px; border-radius: 9px;
  font-size: 13px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  animation: shake .4s ease;
}
@keyframes shake {
  0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)}
}

/* Submit btn */
.btn-login {
  width: 100%; padding: 13px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--green2), var(--green));
  color: white; font-family: var(--ui); font-size: 15px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(16,185,129,.35); transition: all .2s;
  letter-spacing: .3px; margin-top: 6px;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(16,185,129,.45); }
.btn-login:active { transform: translateY(0); }

/* Divider */
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: var(--muted); font-size: 12px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Biometric btn */
.btn-biometric {
  width: 100%; padding: 12px; border-radius: 10px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); font-family: var(--ui); font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .2s;
}
.btn-biometric:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,212,255,.05); }
.btn-biometric i { font-size: 17px; }

/* Biometric info */
.biometric-info {
  display: flex; align-items: center; gap: 7px; justify-content: center;
  margin-top: 10px; font-size: 11px; color: var(--muted);
}
.biometric-info i { color: var(--green); font-size: 11px; }

/* Only mobile */
.solo-celular { display: none; }
@media(max-width: 768px) { .solo-celular { display: block; } }

/* ── RESPONSIVE ────────────────────────────── */
@media(max-width:768px) {
  .login-left { display: none; }
  .login-right {
    width: 100%; border-left: none; padding: 36px 28px;
    border-radius: 0;
  }
  .login-wrapper {
    border-radius: 16px; margin: 16px;
    min-height: auto;
  }
}
@media(max-width:400px) {
  .login-right { padding: 28px 20px; }
}
