:root {
  --nl: #2E7D32;
  --nl-dark: #1B5E20;
  --mb: #FF6B00;
  --ink: #0c1628;
  --muted: #5c6575;
  --paper: rgba(255, 255, 255, 0.9);
  --border: rgba(12, 22, 40, 0.12);
  --shadow: 0 24px 70px -32px rgba(10, 16, 35, 0.45);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --primary-color: var(--nl);
  --primary-strong: var(--nl-dark);
}

body.login-page {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 12% 20%, rgba(46, 125, 50, 0.22), transparent 30%),
    radial-gradient(circle at 80% 12%, rgba(255, 107, 0, 0.2), transparent 32%),
    linear-gradient(135deg, #eef2ff, #f9fbff 45%, #f7f9ff);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
}

body.login-page::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 18% 30%, rgba(111, 228, 255, 0.18), transparent 36%),
    radial-gradient(circle at 88% 36%, rgba(139, 124, 255, 0.12), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

h1,
h2,
h3 {
  font-family: 'Epilogue', 'Manrope', sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.login-card {
  background-color: var(--paper) !important;
  color: var(--ink);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.login-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(111, 228, 255, 0.12), transparent 42%);
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.login-card > * {
  position: relative;
  z-index: 1;
}

.login-card:hover::after {
  opacity: 1;
}

.subtitle,
.muted,
label,
p,
a {
  color: var(--muted);
}

.btn-primary {
  background: linear-gradient(135deg, var(--nl), var(--nl-dark));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 18px 38px -22px rgba(46, 125, 50, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px -24px rgba(46, 125, 50, 0.85);
}

.btn-primary:active {
  transform: translateY(0);
}

input[type='email'],
input[type='password'] {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.9rem 1rem;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type='email']::placeholder,
input[type='password']::placeholder {
  color: #94a3b8;
}

input[type='email']:focus,
input[type='password']:focus {
  outline: none;
  border-color: rgba(46, 125, 50, 0.35);
  box-shadow: 0 0 0 3px rgba(111, 228, 255, 0.22);
}

#error-message {
  background-color: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #b91c1c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2ff;
    --muted: #cbd5e1;
    --paper: rgba(15, 23, 42, 0.92);
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 24px 70px -32px rgba(0, 0, 0, 0.65);
  }

  body.login-page {
    background: radial-gradient(circle at 12% 20%, rgba(46, 125, 50, 0.28), transparent 30%),
      radial-gradient(circle at 80% 12%, rgba(255, 107, 0, 0.24), transparent 32%),
      linear-gradient(135deg, #0a0f1c, #0b1220 48%, #0e1730);
  }

  .login-card::after {
    background: linear-gradient(135deg, rgba(111, 228, 255, 0.12), rgba(255, 255, 255, 0.04));
  }

  .login-card {
    background-color: rgba(15, 23, 42, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--ink);
  }

  .btn-primary {
    box-shadow: 0 18px 38px -22px rgba(46, 125, 50, 0.9);
  }

  input[type='email'],
  input[type='password'] {
    background: rgba(17, 24, 39, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--ink);
  }

  input[type='email']::placeholder,
  input[type='password']::placeholder {
    color: #94a3b8;
  }
}
