/**
 * Authentication login page only — templates/authenticationApp/login.html
 * Split layout: left solid navy brand panel | right high-rise image + card.
 * Image: ../homepage-highrise.jpg (relative to static/css/)
 */

:root {
  --vs-navy-950: #07142f;
  --vs-navy-900: #0b1f4d;
  --vs-blue-600: #2563eb;
  --vs-blue-500: #3b82f6;
  --vs-text-dark: #1e2a44;
  --vs-text-muted: #64748b;
}

body.vs-login-body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Public Sans", sans-serif;
  color: var(--vs-text-dark);
  background-color: var(--vs-navy-950);
}

.vs-login-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--vs-navy-950);
}

.vs-login-split {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
}

/* Left: solid / deep navy brand panel — no photo behind text */
.vs-login-aside {
  flex: 1 1 0;
  min-width: 0;
  padding: 3rem 3rem 3rem 3.25rem;
  background: linear-gradient(
    168deg,
    #061632 0%,
    #0a2148 38%,
    #0c2860 72%,
    #0a1f4d 100%
  );
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.vs-login-aside .vs-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  margin-bottom: 2.5rem;
}

.vs-login-aside .vs-brand-link img {
  height: 40px;
  width: auto;
}

.vs-login-aside .vs-brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.vs-login-aside h1 {
  font-size: clamp(1.35rem, 2.15vw, 1.85rem);
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 1rem;
  max-width: 24rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.vs-login-aside h1 .vs-headline-line {
  display: block;
}

.vs-login-aside h1 .vs-headline-line:last-child {
  margin-top: 0.12em;
  color: rgba(248, 250, 252, 0.97);
}

.vs-login-aside .vs-aside-lead {
  font-size: 1rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.75rem;
  max-width: 28rem;
}

.vs-login-aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vs-login-aside li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.91);
  line-height: 1.45;
}

.vs-login-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--vs-blue-500);
}

/* Right: high-rise image + light overlay + optional subtle contrast */
.vs-login-main {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.5rem 2rem;
  background-color: #1e3a5f;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    url("../homepage-highrise.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.vs-login-main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* Subtle edge vignette + slight blue lift for card contrast — keeps image visible */
  background:
    linear-gradient(
      90deg,
      rgba(6, 22, 50, 0.18) 0%,
      rgba(6, 22, 50, 0.05) 28%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 95% 85% at 50% 45%,
      transparent 35%,
      rgba(4, 18, 45, 0.22) 100%
    );
}

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

.vs-login-card {
  width: 100%;
  max-width: 456px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 2px 4px rgba(3, 15, 40, 0.06),
    0 20px 48px rgba(3, 15, 40, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  padding: 2.55rem 2.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vs-login-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px rgba(3, 15, 40, 0.08),
    0 24px 54px rgba(3, 15, 40, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.vs-login-card h2 {
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--vs-navy-900);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.vs-login-card .vs-card-sub {
  font-size: 0.95rem;
  color: var(--vs-text-muted);
  margin: 0 0 1.55rem;
  line-height: 1.55;
}

.vs-login-card .form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--vs-text-dark);
}

.vs-login-card .btn-signin {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #2563eb;
  font-weight: 700;
  font-size: 0.97rem;
  padding: 0.78rem 1rem;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}

.vs-login-card .btn-signin:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #1d4ed8;
}

.vs-login-card .form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 0.15rem rgba(59, 130, 246, 0.2);
}

.vs-login-card .form-password-toggle a small {
  color: var(--vs-blue-600);
  font-weight: 600;
}

.vs-login-card .text-center a {
  color: var(--vs-blue-600);
  font-weight: 700;
  text-decoration: none;
}

.vs-login-card .text-center a:hover {
  text-decoration: underline;
}

.vs-trust-line {
  margin-top: 1rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 28rem;
}

.vs-login-footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  text-align: center;
  padding: 0.65rem 1rem 0.95rem;
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.82rem;
  background: linear-gradient(180deg, rgba(6, 22, 50, 0.35) 0%, rgba(4, 14, 36, 0.92) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.vs-login-footer a {
  color: rgba(226, 232, 240, 0.92);
  text-decoration: none;
  margin: 0 0.35rem;
}

.vs-login-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Desktop: slightly smaller headline is default above; nudge sign-in card upward */
@media (min-width: 992px) {
  .vs-login-card {
    margin-top: -26px;
  }
}

/* Tablet / mobile: card first, compact brand strip, image on hero column */
@media (max-width: 991.98px) {
  .vs-login-split {
    flex-direction: column;
    min-height: 0;
  }

  .vs-login-main {
    order: -1;
    flex: 0 0 auto;
    min-height: min(52vh, 420px);
    padding: 1.5rem 1.25rem;
    background-position: center center;
  }

  .vs-login-aside {
    flex: 0 1 auto;
    padding: 1.5rem 1.35rem 2rem;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    justify-content: flex-start;
  }

  .vs-login-aside .vs-brand-link {
    margin-bottom: 1.1rem;
  }

  .vs-login-aside h1 {
    font-size: clamp(1.2rem, 4.2vw, 1.45rem);
    margin-bottom: 0.75rem;
  }

  .vs-login-aside .vs-aside-lead {
    font-size: 0.92rem;
    margin-bottom: 1.1rem;
  }

  .vs-login-aside li {
    font-size: 0.88rem;
    margin-bottom: 0.45rem;
  }

  .vs-trust-line {
    margin-top: 0.65rem;
    font-size: 0.8rem;
  }

  .vs-login-card {
    margin-inline: auto;
  }
}

@media (max-width: 575.98px) {
  .vs-login-main {
    min-height: min(48vh, 380px);
    padding: 1.25rem 1rem 1rem;
    background-position: 52% center;
  }

  .vs-login-card {
    padding: 2rem 1.35rem;
  }

  .vs-login-footer {
    font-size: 0.78rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .vs-login-footer a {
    display: inline-block;
    margin: 0.2rem 0.25rem;
  }
}
