:root {
  --nissan-red: #c3002f;
  --nissan-silver: #f5f5f6;
  --nissan-charcoal: #1f1f1f;
  --focus-outline: 0 0 0 0.25rem rgba(195, 0, 47, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, #f7f7f9 40%, #eef1f5 100%);
  color: #2a2a2a;
  min-height: 100vh;
}

.login-hero {
  position: relative;
  overflow: hidden;
}

.login-hero::before,
.login-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
}

.login-hero::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(195, 0, 47, 0.25), transparent 60%);
  top: -120px;
  right: -120px;
}

.login-hero::after {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(31, 31, 31, 0.18), transparent 60%);
  bottom: -80px;
  left: -100px;
}

.login-hero > .container {
  position: relative;
  z-index: 1;
}

.login-header {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 0.75rem;
}

.logo-mark {
  height: 56px;
  display: inline-flex;
  align-items: center;
}

.logo-image {
  height: 100%;
  width: auto;
  display: block;
}

.login-card {
  border-radius: 22px;
  background: #ffffff;
  backdrop-filter: blur(6px);
}

.login-card .card-body {
  background: linear-gradient(180deg, rgba(245, 245, 246, 0.6), #ffffff 45%);
  border-radius: 22px;
}

.form-control,
.form-check-input {
  border-radius: 12px;
  border: 1px solid #d5d8dc;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--nissan-red);
  box-shadow: var(--focus-outline);
}

.form-check-input:focus {
  box-shadow: var(--focus-outline);
  border-color: var(--nissan-red);
}

.btn-danger {
  background-color: var(--nissan-red);
  border-color: var(--nissan-red);
  border-radius: 14px;
  box-shadow: 0 10px 18px rgba(195, 0, 47, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-danger:hover,
.btn-danger:focus {
  background-color: #a80029;
  border-color: #a80029;
  transform: translateY(-1px);
}

.btn-danger:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(195, 0, 47, 0.3);
}

.alert {
  border-radius: 12px;
}

@media (max-width: 768px) {
  .login-header {
    text-align: left;
  }

  .logo-mark {
    height: 48px;
  }

  .login-card {
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
