:root {
  --bg: #eef3f6;
  --panel: rgba(255,255,255,.94);
  --text: #101418;
  --muted: #66717f;
  --line: #d9e2eb;
  --primary: #17202e;
  --accent: #0f766e;
  --bad: #991b1b;
  --shadow: 0 28px 80px rgba(17, 24, 39, .16);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.70), rgba(238,243,246,.95)),
    repeating-linear-gradient(135deg, rgba(16,20,24,.035) 0 1px, transparent 1px 42px),
    var(--bg);
}

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-panel {
  width: min(440px, 100%);
  display: grid;
  gap: 22px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

header { display: flex; gap: 14px; align-items: center; }
.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}
h1, p { margin: 0; }
h1 { font-size: 30px; line-height: 1; font-weight: 950; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: 0; margin-bottom: 6px; }
.login-form { display: grid; gap: 13px; }
label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 900; }
input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  font: inherit;
}
input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(15, 118, 110, .14); }
button {
  border: 0;
  border-radius: 8px;
  min-height: 48px;
  padding: 13px 15px;
  font-weight: 950;
  cursor: pointer;
}
button:disabled { opacity: .7; cursor: wait; }
.primary { background: var(--primary); color: white; }
.message { min-height: 20px; color: var(--bad); font-weight: 800; }

@media (max-width: 520px) {
  .login-shell { place-items: start center; padding-top: 28px; }
}
