:root{
  color-scheme:dark;
  --bg:#0b1020; --panel:rgba(12,19,38,0.72); --panel2:rgba(255,255,255,0.06);
  --stroke:rgba(255,255,255,0.12); --text:rgba(255,255,255,0.92); --muted:rgba(255,255,255,0.62);
  --accent:#40C0C6; --accent-dim:#2a9aa0; --danger:#EB5757;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{background:var(--bg); color:var(--text);
  font:14px/1.45 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  display:flex; align-items:center; justify-content:center; padding:24px; overflow:hidden}
/* Photo: blurred placeholder underneath, full JPEG fades in on top; both cover the viewport. */
.bg{position:fixed; inset:0; z-index:0; background-size:cover; background-position:center 40%;
  transform:scale(1.03)}
.bg-full{object-fit:cover; object-position:center 40%; width:100%; height:100%; opacity:0;
  transition:opacity 700ms ease}
.bg-full.in{opacity:1}
/* Darken toward the bottom-left so the card and text always read, whatever the photo does. */
.shade{position:fixed; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(8,12,22,0.18) 0%, rgba(8,12,22,0.45) 55%, rgba(8,12,22,0.82) 100%)}
.wrap{position:relative; z-index:2; width:100%; max-width:420px}
.card{background:var(--panel); border:1px solid var(--stroke); border-radius:16px; padding:28px 28px 22px;
  backdrop-filter:blur(14px) saturate(120%); -webkit-backdrop-filter:blur(14px) saturate(120%);
  box-shadow:0 20px 60px rgba(0,0,0,0.45)}
.brand{display:flex; gap:12px; align-items:center; margin-bottom:22px}
.logo{width:40px; height:40px; border-radius:11px; display:grid; place-items:center; font-size:20px;
  background:rgba(64,192,198,0.20); border:1px solid rgba(64,192,198,0.45)}
.title{font-weight:800; font-size:19px; letter-spacing:.2px}
.subtitle{font-size:12px; color:var(--muted)}
.sub{color:var(--muted); font-size:12.5px; margin:0 0 18px}
label{display:block; font-size:11.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.6px;
  margin-bottom:13px}
input{display:block; width:100%; margin-top:5px; padding:10px 12px; font:15px/1.3 inherit; color:var(--text);
  background:var(--panel2); border:1px solid var(--stroke); border-radius:10px; text-transform:none; letter-spacing:0}
input:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(64,192,198,0.18)}
button{width:100%; margin-top:6px; padding:11px 12px; font:700 14px/1 inherit; color:#06161a;
  background:var(--accent); border:none; border-radius:10px; cursor:pointer}
button:hover:not(:disabled){filter:brightness(1.08)}
button:disabled{opacity:.6; cursor:progress}
.err{background:rgba(235,87,87,.14); border:1px solid rgba(235,87,87,.5); color:#ffb4b4; border-radius:9px;
  padding:8px 11px; font-size:12.5px; margin-bottom:12px}
.foot{margin-top:18px; padding-top:14px; border-top:1px solid var(--stroke); font-size:11.5px; color:var(--muted);
  line-height:1.5}
.credit{text-align:center; margin-top:14px; font-weight:700; letter-spacing:.3px; color:rgba(255,255,255,0.7)}
.credit span{color:var(--accent)}
/* Google sign-in (Ignitia staff) — a link styled as a button; the server performs the redirect. */
.gbtn{display:flex; align-items:center; gap:10px; width:100%; padding:10px 12px; color:var(--text);
  background:var(--panel2); border:1px solid var(--stroke); border-radius:10px; text-decoration:none;
  font:600 14px/1.2 inherit; margin-bottom:14px}
.gbtn:hover{border-color:var(--accent)}
.gbtn svg{flex:none}
.gbtn span{flex:1}
.gbtn small{font-weight:500; font-size:11px; color:var(--muted)}
.or{display:flex; align-items:center; gap:10px; margin:0 0 16px; color:var(--muted); font-size:10.5px;
  text-transform:uppercase; letter-spacing:.8px}
.or::before,.or::after{content:""; flex:1; height:1px; background:var(--stroke)}
@media (max-width:420px){ .card{padding:22px 18px 18px} body{padding:14px} }
