:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #20242f;
  --muted: #707789;
  --line: #dbe3ee;
  --brand: #355f9f;
  --brand-strong: #244f92;
  --bad: #b42318;
  --shadow: 0 24px 70px rgba(32, 36, 47, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

.login-shell {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: 24px;
}

.login-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 430px;
  padding: 30px;
  width: 100%;
}

.brand-row {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-mark {
  align-items: center;
  background: var(--brand);
  border-radius: 12px;
  color: #fff;
  display: flex;
  font-size: 20px;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 2px;
  text-transform: uppercase;
}

h1 {
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
}

.login-form {
  display: grid;
  gap: 16px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

input {
  appearance: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  min-height: 48px;
  padding: 12px 14px;
  text-transform: none;
}

input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(53, 95, 159, .12);
  outline: none;
}

button {
  appearance: none;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 50px;
  padding: 13px 16px;
}

button:hover { background: var(--brand-strong); }
button:disabled { cursor: wait; opacity: .72; }

.message {
  color: var(--bad);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  min-height: 20px;
}

@media (max-width: 520px) {
  .login-shell { align-items: stretch; padding: 14px; }
  .login-panel {
    align-self: center;
    border-radius: 16px;
    padding: 24px;
  }
}
