:root {
  color-scheme: dark;
  --bg: #07111f;
  --card: rgba(15, 27, 46, 0.92);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --danger: #f87171;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.17), transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(14, 165, 233, 0.12), transparent 30%),
    var(--bg);
}

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

.login-card {
  width: min(100%, 430px);
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 26px;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(145deg, #60a5fa, #2563eb);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.32);
}

.eyebrow {
  margin: 0 0 9px;
  color: #60a5fa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(27px, 5vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.description {
  margin: 14px 0 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

label {
  display: block;
  margin-bottom: 9px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
}

.password-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(2, 8, 23, 0.5);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.password-field:focus-within {
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.password-field input {
  min-width: 0;
  flex: 1;
  padding: 15px 16px;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.password-field input::placeholder { color: #64748b; }

.password-field button {
  margin-right: 7px;
  padding: 9px 10px;
  color: #93c5fd;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}

.error-message {
  min-height: 22px;
  margin: 8px 2px 4px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}

.login-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  color: white;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.login-button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.login-button:disabled { cursor: wait; opacity: 0.65; transform: none; }
.login-button .arrow { font-size: 20px; }

.security-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  color: #64748b;
  font-size: 12px;
}

.security-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

@media (max-width: 520px) {
  .login-shell { padding: 14px; }
  .login-card { padding: 28px 22px; border-radius: 20px; }
}
