/* tokens */
.login-v2 {
  --bg: #0b1728;
  --bg-2: #3b5b84;
  --bloom: #5f8cc9;
  --text: #f4f7fb;
  --muted: #9aa7b9;
  --accent: #4f8cff;
  --radius: 12px;
  --surface: rgba(8, 13, 20, 0.35);
  min-height: 100vh;
  position: relative;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-y: hidden;
  overflow-x: hidden;
}

/* remove default link underlines */
.login-v2 a {
  text-decoration: none;
  color: inherit;
}
.login-v2 a:hover,
.login-v2 a:focus {
  text-decoration: none;
}


/* background: image + overlay */
.login-v2__bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.login-v2__bg-image {
  position: absolute;
  inset: 0;
  background-image: url("{{ url_for('static', filename='images/lockheed_hero.jpg') }}");
  background-size: cover;
  background-position: center;
  filter: saturate(0.9);
}

/* background image dimmer layer */
.login-v2__bg-dim {
  position: absolute;
  inset: 0;
  background: rgba(19, 34, 60, 0.55);
  pointer-events: none;
}


/* top brand anchor */
.login-v2__topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}
.login-v2__logo img {
  height: 120px;
  display: block;
}

/* shell: centers the card */
.login-v2__shell {
  position: relative;
  z-index: 2;
  min-height: calc(85vh - 86px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(110px, 4vw, 48px);
}

/* card wrapper to slow the card entrance transition */
.login-v2__card-wrap {
  transform: translateY(75px);
  transition: transform 1s cubic-bezier(0.5, 1.2, 0.7, 1);
  padding-top: 5%;
  padding-right: 10%;
}

.login-v2__card-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* elevated authentication card */
.login-v2__card {
  background: rgba(10, 15, 23, 0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(94, 139, 201, 0.32);
  border-radius: 20px;
  padding: clamp(20px, 3.5vw, 36px);
  width: min(420px, 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.26);
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

/* Headings and descriptive text */
.login-v2__card h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 2.3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.login-v2__desc {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ACTIONS LAYOUT — Vertical stack for login + help buttons */
.login-v2__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* PRIMARY ACTION BUTTON — Default "Login" button styling */
.login-v2__actions .card {
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.login-v2__actions .card p {
  margin: 0;
  font-weight: 600;
}

/* BUTTON INTERACTIONS — Hover and focus micro-animations */
.login-v2__action:hover .card,
.login-v2__action:focus-visible .card {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(79, 140, 255, 0.35);
  outline: none;
}

/* secondary action variant */
.login-v2__action--secondary .card {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(244, 247, 251, 0.25);
  backdrop-filter: blur(12px);
}

/* Responsive adjustments for mobile readability */
@media (max-width: 600px) {
  .login-v2__card {
    background: rgba(10, 15, 23, 0.85);
  }
  .login-v2__topbar {
    justify-content: center;
  }
}
