:root{
  --bg:#08090c;
  --panel:#111319;
  --line:rgba(255,255,255,.09);
  --text:#f5f5f6;
  --muted:#858a95;
  --gold:#d7b56d;
  --gold2:#f0d38b;
  --red:#ff6675;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
  background:
    radial-gradient(circle at 50% -10%,rgba(215,181,109,.13),transparent 34%),
    radial-gradient(circle at 10% 80%,rgba(80,90,140,.08),transparent 30%),
    var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

body{
  min-height:100vh;
  overflow:hidden;
}

.login-shell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:25px;
  position:relative;
  overflow:hidden;
}

.ambient{
  position:absolute;
  border:1px solid rgba(215,181,109,.08);
  border-radius:50%;
  pointer-events:none;
}

.ambient-one{
  width:600px;
  height:600px;
  top:-330px;
  right:-150px;
}

.ambient-two{
  width:430px;
  height:430px;
  bottom:-260px;
  left:-160px;
}

.login-card{
  width:min(430px,100%);
  position:relative;
  padding:36px;
  border:1px solid var(--line);
  border-radius:22px;
  background:
    linear-gradient(145deg,rgba(22,24,30,.97),rgba(11,13,17,.98));
  box-shadow:
    0 30px 100px rgba(0,0,0,.55),
    0 0 70px rgba(215,181,109,.035);
  -webkit-backdrop-filter:blur(25px);
  backdrop-filter:blur(25px);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding-bottom:25px;
  border-bottom:1px solid var(--line);
}

.brand-mark{
  width:43px;
  height:43px;
  display:grid;
  place-items:center;
  border-radius:13px;
  border:1px solid rgba(215,181,109,.45);
  color:var(--gold2);
  font-size:12px;
  font-weight:800;
  letter-spacing:.5px;
  box-shadow:0 0 30px rgba(215,181,109,.08);
}

.brand strong{
  display:block;
  font-size:12px;
  letter-spacing:2px;
}

.brand span{
  display:block;
  color:#707580;
  font-size:8px;
  letter-spacing:1.5px;
  margin-top:4px;
}

.login-heading{
  margin:30px 0 25px;
}

.eyebrow{
  color:var(--gold);
  font-size:9px;
  font-weight:700;
  letter-spacing:2px;
}

h1{
  font-size:31px;
  letter-spacing:-1px;
  margin:8px 0 7px;
}

.login-heading p{
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
  margin:0;
}

label{
  display:block;
  color:#a5a9b1;
  font-size:10px;
  font-weight:600;
  margin:17px 0 7px;
}

.input-wrap{
  height:47px;
  display:flex;
  align-items:center;
  border:1px solid var(--line);
  border-radius:10px;
  background:rgba(0,0,0,.18);
  transition:.2s;
}

.input-wrap:focus-within{
  border-color:rgba(215,181,109,.45);
  box-shadow:0 0 0 3px rgba(215,181,109,.05);
}

.input-icon{
  width:43px;
  text-align:center;
  color:#6e737d;
  font-size:12px;
}

input{
  width:100%;
  height:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
  font-size:12px;
}

input::placeholder{
  color:#555a64;
}

.show-password{
  border:0;
  background:transparent;
  color:#777d87;
  font-size:8px;
  letter-spacing:1px;
  padding:12px;
  cursor:pointer;
}

.show-password:hover{
  color:var(--gold2);
}

.security-note{
  display:flex;
  align-items:center;
  gap:7px;
  margin:15px 0;
  color:#626872;
  font-size:9px;
}

.security-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--green,#63d59b);
  box-shadow:0 0 10px rgba(99,213,155,.7);
}

.login-button{
  width:100%;
  height:47px;
  border:1px solid rgba(215,181,109,.4);
  border-radius:10px;
  background:linear-gradient(135deg,#d7b56d,#b99651);
  color:#17130b;
  font-size:10px;
  font-weight:800;
  letter-spacing:1.5px;
  cursor:pointer;
  position:relative;
  transition:.2s;
}

.login-button:hover{
  filter:brightness(1.08);
  box-shadow:0 8px 30px rgba(215,181,109,.12);
}

.login-button:disabled{
  opacity:.7;
  cursor:not-allowed;
}

.loader{
  display:none;
  width:14px;
  height:14px;
  margin-left:7px;
  vertical-align:middle;
  border:2px solid rgba(0,0,0,.2);
  border-top-color:#17130b;
  border-radius:50%;
  animation:spin .7s linear infinite;
}

.loader.active{
  display:inline-block;
}

@keyframes spin{
  to{transform:rotate(360deg)}
}

.error-box{
  display:none;
  margin-top:12px;
  padding:10px 12px;
  border:1px solid rgba(255,102,117,.22);
  border-radius:9px;
  background:rgba(255,102,117,.06);
  color:#ff9ba5;
  font-size:10px;
  line-height:1.5;
}

.error-box.show{
  display:block;
}

footer{
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin-top:25px;
  padding-top:18px;
  border-top:1px solid var(--line);
  color:#555a63;
  font-size:8px;
}

@media(max-width:480px){
  .login-shell{
    padding:15px;
  }

  .login-card{
    padding:27px 22px;
    border-radius:18px;
  }

  h1{
    font-size:27px;
  }
}

/* ---- Fresh design (same look as the Command Center, 2026-10-08) ---- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/static/fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
}

body {
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(45, 212, 191, .08), transparent 60%),
    radial-gradient(800px 460px at 10% 0%, rgba(227, 185, 100, .08), transparent 55%),
    #0a0d13;
}

button,
input {
  font-family: inherit;
}

.login-card {
  border-color: rgba(148, 163, 184, .14);
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 40%), #111620;
}

.brand-mark {
  border: 0;
  background: linear-gradient(135deg, #f4d48e, #e3b964 55%, #b98a3a);
  color: #1a1306;
  box-shadow: 0 8px 22px rgba(227, 185, 100, .25);
}

.input-wrap {
  border-radius: 12px;
  background: #171d29;
}

.login-button {
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4d48e, #e3b964);
  color: #1a1306;
  font-size: 12px;
  box-shadow: 0 10px 24px rgba(227, 185, 100, .22);
}
