* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --text: #111827;
  --muted: #64748b;
  --border: #dbe3ee;
  --soft: #f8fafc;
  --danger: #dc2626;
}

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.12), transparent 32%),
    radial-gradient(circle at 85% 85%, rgba(37, 99, 235, 0.08), transparent 30%),
    #f8fafc;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.login-card {
  width: min(440px, 100%);
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: white;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 42px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: var(--primary);
  font-weight: 900;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login-heading h1 {
  margin-bottom: 8px;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.login-heading p {
  color: var(--muted);
  font-size: 0.94rem;
}

form {
  margin-top: 30px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.86rem;
  font-weight: 750;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: white;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.message {
  min-height: 22px;
  margin: 4px 0 12px;
  color: var(--danger);
  font-size: 0.86rem;
}

.btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.back-link {
  display: block;
  margin-top: 24px;
  color: var(--muted);
  text-align: center;
  font-size: 0.84rem;
  text-decoration: none;
}

.back-link:hover {
  color: var(--primary);
}

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

  .brand {
    margin-bottom: 32px;
  }
}
