/* =========================================
   SecureBank — Auth (Login/Register/Admin)
   Standalone CSS (does not rely on style.css)
   Works with Bootstrap 5 + FontAwesome.
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root{
  --sb-ink:#0b1220;
  --sb-muted:#64748b;
  --sb-border:rgba(2,6,23,.12);
  --sb-card:#ffffff;

  --sb-grad-1:linear-gradient(135deg,#6366f1 0%,#8b5cf6 45%,#22c55e 110%);
  --sb-grad-2:radial-gradient(1200px circle at 10% 10%, rgba(99,102,241,.28), transparent 55%),
               radial-gradient(1000px circle at 90% 20%, rgba(139,92,246,.22), transparent 55%),
               radial-gradient(900px circle at 50% 100%, rgba(34,197,94,.14), transparent 55%);

  --sb-shadow:0 24px 70px rgba(2,6,23,.18);
  --sb-radius:22px;
}

*{ box-sizing:border-box; }

html,body{ height:100%; }

body{
  font-family:'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--sb-ink);
  background:
    var(--sb-grad-2),
    linear-gradient(180deg,#f8fafc 0%,#f1f5f9 30%,#eef2ff 100%);
}

/* ========== Container / Card ========== */
.auth-container{
  min-height:100vh;
  padding:24px 0;
  display:flex;
  align-items:center;
}

.auth-card{
  background:var(--sb-card);
  border:1px solid var(--sb-border);
  border-radius:var(--sb-radius);
  overflow:hidden;
  box-shadow:var(--sb-shadow);
}

/* Left panel */
.auth-left{
  position:relative;
  padding:44px 40px;
  background:var(--sb-grad-1);
  color:#fff;
}

.auth-left::before,
.auth-left::after{
  content:"";
  position:absolute;
  width:280px;
  height:280px;
  border-radius:50%;
  filter:blur(2px);
  opacity:.35;
  pointer-events:none;
}

.auth-left::before{ top:-110px; left:-110px; background:rgba(255,255,255,.55); }
.auth-left::after{ bottom:-140px; right:-140px; background:rgba(255,255,255,.25); }

.auth-left h2,
.auth-left h3{
  letter-spacing:-.02em;
}

.auth-left p{ opacity:.92; }

/* Right panel */
.auth-right{
  padding:44px 40px;
  background:#fff;
}

/* App mark (register left) */
.app-mark{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
}

/* Typography polish */
.auth-right h3,
.auth-right h5{
  letter-spacing:-.02em;
}

/* ========== Inputs ========== */
.form-label{
  font-weight:600;
  color:#0f172a;
}

.form-control,
.form-select{
  border-radius:14px;
  border:1px solid rgba(2,6,23,.14);
  padding:.75rem .95rem;
}

.form-control:focus,
.form-select:focus{
  border-color:rgba(99,102,241,.55);
  box-shadow:0 0 0 .22rem rgba(99,102,241,.18);
}

.input-group .btn,
.input-group .input-group-text{
  border-radius:14px;
}

.input-group .input-group-text{
  background:#f8fafc;
  border:1px solid rgba(2,6,23,.14);
}

.toggle-password{
  border:1px solid rgba(2,6,23,.14);
}

/* ========== Buttons ========== */
.btn-primary{
  border:none;
  background:linear-gradient(135deg,#4f46e5 0%,#7c3aed 55%,#16a34a 120%);
  border-radius:14px;
  font-weight:700;
  letter-spacing:.01em;
}

.btn-primary:hover{
  filter:brightness(1.03);
  transform:translateY(-1px);
}

.btn-primary:active{
  transform:translateY(0);
}

.btn-outline-secondary{
  border-radius:14px;
}

a{ text-decoration:none; }

a:hover{ text-decoration:underline; }

/* ========== Alerts ========== */
.alert{
  border-radius:16px;
  border:1px solid rgba(2,6,23,.08);
}

/* ========== Wizard Steps (Register) ========== */
.wizard-steps{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:10px 0 18px;
}

.wizard-step{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(2,6,23,.12);
  background:#fff;
  color:#334155;
}

.wizard-step .step-number{
  width:28px;
  height:28px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-weight:800;
  background:#f1f5f9;
  color:#0f172a;
}

.wizard-step.active{
  border-color:rgba(99,102,241,.35);
  background:rgba(99,102,241,.06);
}

.wizard-step.active .step-number{
  background:rgba(99,102,241,.18);
  color:#3730a3;
}

.step-content{ display:none; }
.step-content.active{ display:block; }

/* ========== Helpers ========== */
.auth-right .text-muted{ color:var(--sb-muted) !important; }

/* Improve focus visibility for keyboard users */
:focus-visible{
  outline:3px solid rgba(99,102,241,.35);
  outline-offset:2px;
}

/* ========== Responsive ========== */
@media (max-width: 991.98px){
  .auth-left{ padding:34px 28px; }
  .auth-right{ padding:34px 28px; }
}

@media (max-width: 575.98px){
  .auth-container{ padding:14px 0; }
  .auth-left{ padding:28px 20px; }
  .auth-right{ padding:28px 20px; }
  .wizard-step{ padding:8px 10px; }
}
