:root {
  color-scheme: light;
  --page: #f3f6f9;
  --surface: #ffffff;
  --text: #17212b;
  --muted: #687380;
  --line: #d9e0e7;
  --blue: #1976d2;
  --danger: #b42318;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.login-panel {
  width: min(100%, 420px);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 20px 48px rgba(24, 38, 54, 0.1);
}

.logo {
  display: block;
  width: 168px;
  height: auto;
  margin-bottom: 34px;
}

.heading { margin-bottom: 28px; }

.heading p {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: 0;
}

form { display: grid; gap: 18px; }

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.25;
  touch-action: manipulation;
  -webkit-user-select: text;
  user-select: text;
}

input:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.12);
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

button:disabled { opacity: 0.65; cursor: progress; }

.error {
  margin: -4px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 650;
}

@media (max-width: 480px) {
  .login-shell { padding: 16px; }
  .login-panel { padding: 28px 22px; }
  .logo { width: 148px; margin-bottom: 28px; }
}
