:root {
  color: #18202a;
  background: #f5f6f8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -12%, rgba(49, 91, 214, 0.11), transparent 34rem),
    #f5f6f8;
}

button, input { font: inherit; }

.login-shell {
  display: grid;
  min-height: 100vh;
  padding: 32px 18px;
  place-content: center;
}

.login-card {
  width: min(100%, 390px);
  padding: 30px;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(24, 32, 42, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  color: #fff;
  border-radius: 10px;
  background: #315bd6;
  box-shadow: 0 4px 12px rgba(49, 91, 214, 0.24);
  place-items: center;
}

.brand-mark svg { width: 21px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.brand > span:last-child { display: grid; gap: 3px; }
.brand strong { font-size: 14px; letter-spacing: -0.01em; }
.brand small { color: #667180; font-size: 11px; }

.intro { margin: 34px 0 25px; }
.eyebrow { margin: 0 0 6px; color: #315bd6; font-size: 11px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
h1 { margin: 0; color: #111820; font-size: 29px; letter-spacing: -0.04em; }
.intro > p:last-child { margin: 9px 0 0; color: #667180; font-size: 13px; line-height: 1.55; }

form { display: grid; }
label { margin: 0 0 7px; color: #344050; font-size: 12px; font-weight: 650; }
label[for="password"] { margin-top: 17px; }

input {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 1px solid #d7dce2;
  border-radius: 8px;
  outline: none;
  color: #26313e;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus { border-color: #718ee5; box-shadow: 0 0 0 3px rgba(49, 91, 214, 0.11); }
input[aria-invalid="true"] { border-color: #c94d4d; box-shadow: 0 0 0 3px rgba(201, 77, 77, 0.09); }

button {
  height: 43px;
  margin-top: 22px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #315bd6;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

button:hover:not(:disabled) { background: #284fc2; }
button:active:not(:disabled) { transform: translateY(1px); }
button:focus-visible { outline: 3px solid rgba(49, 91, 214, 0.26); outline-offset: 2px; }
button:disabled { cursor: wait; opacity: 0.7; }

.message { margin: 13px 0 -8px; color: #b33c3c; font-size: 12px; line-height: 1.45; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 16px 0 0; color: #75808d; font-size: 11px; }
.security-note svg { width: 14px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

@media (max-width: 480px) {
  .login-shell { padding: 20px 14px; }
  .login-card { padding: 24px 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
