/* assets/login.css — premium glass UI, CSP-friendly (no inline styles) */
* { box-sizing: border-box; }
html, body { height: 100%; }
:root {
  --bg: #0b1020;
  --panel: rgba(17, 24, 39, 0.86);
  --panel-border: rgba(148, 163, 184, 0.22);
  --muted: #94a3b8;
  --text: #e5e7eb;
  --brand1: #7c3aed;  /* violet */
  --brand2: #2563eb;  /* blue  */
  --focus: rgba(59, 130, 246, 0.25);
}

body.bg {
  margin: 0;
  background:
    radial-gradient(1200px 700px at -10% -20%, #1f2a44 0, rgba(17,24,39,0) 55%),
    radial-gradient(900px 600px at 120% 10%, #192a53 0, rgba(17,24,39,0) 50%),
    var(--bg);
  color: var(--text);
}

.wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 28px;
}

.card {
  width: 100%;
  max-width: 440px;
  padding: 28px 26px 26px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  transform: translateZ(0);
  animation: cardIn .5s ease-out both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: translateY(0)} }

.brand {
  margin: 0 0 16px 0;
  text-align: center;
  font-size: 1.7rem;
  line-height: 1.2;
  letter-spacing: .3px;
}
.brand-accent {
  background: linear-gradient(120deg, var(--brand1), var(--brand2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(124, 58, 237, .14));
}

.form { display: grid; gap: 12px; margin-top: 6px; }
.lbl { font-size: .92rem; color: #cbd5e1; margin-top: 4px; }

.inp {
  width: 100%;
  margin-top: 6px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(2, 6, 23, 0.5);
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .05s ease;
}
.inp::placeholder { color: #77839a; }
.inp:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px var(--focus);
}

.chk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  margin-top: 4px;
  user-select: none;
}
.chk input { accent-color: #60a5fa; }

.btn {
  margin-top: 6px;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand2), var(--brand1));
  box-shadow: 0 10px 26px rgba(37, 99, 235, .28);
  transition: transform .06s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:hover { filter: brightness(1.05); box-shadow: 0 14px 32px rgba(124, 58, 237, .28); }
.btn:active { transform: translateY(1px); }

.error {
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: #fef3c7;
  background: rgba(180, 83, 9, .15);
  border: 1px solid rgba(245, 158, 11, .25);
  text-align: center;
}

.foot {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}
