:root {
  --hero-blue: #1045db;
  --hero-indigo: #15095e;
  --hero-overlay-alpha: 0.08;
  --card-bg: rgba(255, 255, 255, 0.94);
  --text-dark: #0d2352;
  --text-muted: #5a6b8c;
  --primary: #1045db;
  --primary-dark: #0b2fb0;
  --danger: #ff4d4f;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Karla", "Rubik", "Segoe UI", Arial, sans-serif;
  color: #ffffff;
  background: #0b0f6a;
}

.login-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 24px;
  background: var(--danger);
  color: #ffffff;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
  transform: translateY(-120%);
  transition: transform 0.35s ease;
  z-index: 50;
}

.login-banner.is-visible {
  transform: translateY(0);
}

.login-hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(-45deg, var(--hero-blue) 0%, var(--hero-indigo) 60%, var(--hero-indigo) 99%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  overflow: hidden;
  isolation: isolate;
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg,
      rgba(16, 69, 219, var(--hero-overlay-alpha)) 0%,
      rgba(21, 9, 94, var(--hero-overlay-alpha)) 60%,
      rgba(21, 9, 94, var(--hero-overlay-alpha)) 99%);
  z-index: 2;
}

.login-hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.login-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 10% 10%;
  filter: saturate(1.05);
}

.login-card {
  position: relative;
  z-index: 3;
  width: min(440px, 92vw);
  background: var(--card-bg);
  border-radius: 24px;
  padding: 36px 36px 40px;
  box-shadow: 0 30px 60px rgba(7, 20, 60, 0.35);
  color: var(--text-dark);
  backdrop-filter: blur(6px);
}

.login-card__header {
  text-align: center;
  margin-bottom: 26px;
}

.login-logo {
  width: 190px;
  height: auto;
  display: inline-block;
  margin-bottom: 12px;
}

.login-card__header h1 {
  margin: 0 0 6px;
  font-size: 1.75rem;
  line-height: 1.1;
}

.login-card__header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1e2c4a;
}

.form-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(30, 44, 74, 0.2);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 69, 219, 0.15);
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.98rem;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(16, 69, 219, 0.25);
}

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

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(16, 69, 219, 0.35);
}

.btn-ghost:hover {
  background: rgba(16, 69, 219, 0.08);
}

@media (min-width: 680px) {
  .form-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .login-hero {
    --hero-overlay-alpha: 0.85;
    padding: 64px 18px;
  }

  .login-card {
    padding: 28px 24px 32px;
  }

  .login-logo {
    width: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
