:root {
  --bg: #f7f7f9;
  --panel: #ffffff;
  --text: #18181b;
  --muted: #a1a1aa;
  --line: #eeeef1;
  --line-strong: #e4e4e7;
  --ink: #6366f1;
  --accent: #6366f1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

.login-panel {
  width: min(372px, 100%);
  background: var(--panel);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 24px 60px rgba(0, 0, 0, .08);
  padding: 28px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #818cf8, #6366f1);
  box-shadow: 0 6px 16px rgba(99, 102, 241, .28);
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

p {
  margin: 5px 0 22px;
  color: var(--muted);
  font-size: 13px;
}

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

label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  color: #4b5563;
}

input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 0 11px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .18);
}

button {
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #818cf8, #6366f1);
  box-shadow: 0 8px 20px rgba(99, 102, 241, .25);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .14s ease, transform .14s ease;
}

button:hover {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  transform: translateY(-1px);
}

button:disabled {
  opacity: .7;
  cursor: wait;
}

.login-error {
  min-height: 18px;
  color: #be123c;
  font-size: 13px;
  font-weight: 700;
}
