:root{
  --bg1:#0b1022;            /* deep navy */
  --bg2:#111a33;            /* slate */
  --surface:#0c142c;        /* card base */
  --surface-2:#0c142cb3;    /* glass */
  --border:#22304d;
  --text:#e6edf3;
  --muted:#9fb0cb;
  --accent:#22d3ee;         /* cyan */
  --accent2:#60a5fa;        /* blue */
  --danger:#ef4444;
}

/* Reset bits */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue","Noto Sans",sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 800px at -10% -20%, #0ea5e933, transparent),
    radial-gradient(900px 700px at 120% 0%, #60a5fa33, transparent),
    linear-gradient(160deg,var(--bg1),var(--bg2));
}

/* Layout ------------------------------------------------------- */
.auth{
  min-height:100dvh;
  display:grid;
  grid-template-columns: 1fr;
}
.panel{
  position:relative;
  padding:28px;
  margin-bottom: 0px;
}
.panel-left{
  display:flex; flex-direction:column; justify-content:space-between;
  gap:24px; text-align:center;
  /* background: linear-gradient(180deg, #0b1430, #0c1430ee); */
  background: linear-gradient(180deg, #000000, #0c1430ee);
  border-bottom:1px solid #18213a;
}
.panel-right{
  display:flex; align-items:center; justify-content:center;
  padding-block:36px;
}

/* 2-column on >= 900px */
@media (min-width:900px){
  .auth{ grid-template-columns: 1.1fr 1fr; }
  .panel-left{ min-height:100dvh; border-right:1px solid #18213a; border-bottom:0; text-align:left; }
}

/* Brand + highlights ------------------------------------------- */
.brand{ display:flex; align-items:center; gap:14px; margin-top:8px; }
.badge{
  width:60px; height:60px; border-radius:16px; display:grid; place-items:center;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#061225; font-weight:800; font-size:28px;
  box-shadow:0 10px 28px #22d3ee55, inset 0 1px 0 #ffffff99;
}
.brand-text h1{ margin:0; font-size:22px; letter-spacing:.3px }
.brand-text p{ margin:6px 0 0; color:var(--muted); font-size:13px }

.highlights{ list-style:none; padding:0; margin:28px 0 0; display:flex; gap:10px; flex-wrap:wrap; justify-content:center }
@media (min-width:900px){ .highlights{ justify-content:flex-start } }
.highlights li{
  background:#0f1a36; border:1px solid #1e2b49; color:#b9c9e3;
  padding:8px 12px; border-radius:999px; font-size:12px;
}

.copyright{ color:#8aa0c4; font-size:12px; opacity:.85; }

/* Decorative blobs */
/* .blob{ position:absolute; filter:blur(80px); opacity:.45; z-index:0; pointer-events:none } */
/* .blob.a{ width:420px; height:420px; background:#22d3ee3a; top:8%; left:-6% } */
/* .blob.b{ width:520px; height:520px; background:#3b82f63a; bottom:-10%; right:-6% } */

/* Card + form --------------------------------------------------- */
.card{
  position:relative; z-index:1;
  width:100%; max-width:440px;
  background:linear-gradient(180deg, #0b1430, #0c1430ee);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:0 24px 60px #00000066, inset 0 1px 0 #ffffff0d;
  padding:24px 22px 18px;
}
.card h2{ margin:0 0 16px 0; font-size:22px; letter-spacing:.2px }

.alert{
  background:#7f1d1d; border:1px solid #ef444480; color:#fecaca;
  padding:10px 12px; border-radius:10px; margin:0 0 12px 0; font-size:13px;
}

.field{ margin-bottom:14px }
label{ display:block; font-size:12px; color:var(--muted); margin:0 0 6px 2px }

.control{ position:relative }
.control.with-icon .icon{
  position:absolute; left:12px; top:50%; transform:translateY(-50%); width:18px; height:18px; opacity:.8; color:#9fb0cb;
}
.control.with-icon input{ padding-left:40px }

input[type="text"], input[type="password"]{
  width:100%; background:#0b1329; color:var(--text);
  border:1px solid #263559; border-radius:12px; padding:12px 44px 12px 14px;
  outline:none; transition:border .15s, box-shadow .15s;
}
input:focus{
  border-color:#60a5fa;
  box-shadow:0 0 0 4px #3b82f633;
}

/* show/hide toggle button */
.toggle{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  width:34px; height:34px; border-radius:10px; border:1px solid #1e2b49;
  background:#0d162f; cursor:pointer;
}
.toggle.on{ outline:2px solid #60a5fa66 }

.row-between{
  display:flex; justify-content:space-between; align-items:center; gap:10px; margin:6px 4px 16px;
}
.check{ color:var(--muted); font-size:12px }
.link{ color:#93c5fd; text-decoration:none; font-size:12px }
.link:hover{ text-decoration:underline }

.btn{
  width:100%; display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 14px; border-radius:12px; border:0; cursor:pointer;
  background:#f03141;
  color:white; font-weight:700; letter-spacing:.2px;
  box-shadow:0 10px 28px #1f6feb55;
  transition:transform .06s ease-in-out, filter .2s;
}
.btn:active{ transform:translateY(1px) }
.btn:disabled{ filter:grayscale(35%); opacity:.7; cursor:not-allowed }

#spinner{ display:none; width:18px; height:18px }

.muted{ color:var(--muted); font-size:12px; margin-top:10px }
.center{ text-align:center }

/* Small screens tweaks */
@media (max-width:420px){
  .panel{ padding:18px }
  .card{ padding:20px 16px }
  .brand-text h1{ font-size:19px }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce){
  .btn, input:focus{ transition:none }
}

/* High-contrast focus ring for keyboard users */
:focus-visible{
  outline: 2px solid #22d3ee;
  outline-offset: 3px;
}

/* keep the logo small & responsive */
.brand-logo{
  height: 170px;            /* base size */
  max-width: 100%;
  width: auto;
  display: block;

  /* remove the padded box if you want the raw logo only */
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

/* scale a bit on larger screens */
@media (min-width:480px){ .brand-logo{ height:68px; } }
@media (min-width:900px){ .brand-logo{ height:100px; } }



/* Position eye button & swap icons */
.control.with-icon { position: relative; }
.control.with-icon input { padding-right: 48px; }  /* space for the eye */

.control .toggle{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  width:36px; height:36px; display:grid; place-items:center;
  border:0; border-radius:8px; cursor:pointer;
  background:#0d2040; color:#d7e0ef;   /* icon color uses currentColor */
}
.control .toggle:focus{ outline:2px solid #5aa0ff; outline-offset:2px; }

.control .toggle svg{ width:20px; height:20px; }
.control .toggle .eye-off{ display:none; }     /* default: show 'eye' */
.control .toggle.on .eye{ display:none; }      /* when toggled: show 'eye-off' */
.control .toggle.on .eye-off{ display:block; }



.link-forgot{
  text-decoration:none;
  font-weight:600;
  color:#73a5ff;
}
.link-forgot:hover{ text-decoration:underline; }


