/* Login page — split hero + form (loads after landing.css + register.css) */

.page-login {
  background: #eef1f5;
  min-height: 100vh;
}

.login-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login-split {
  display: grid;
  grid-template-columns: 1fr;
  flex: 1;
  min-height: 0;
}

@media (min-width: 960px) {
  .login-split {
    grid-template-columns: minmax(320px, 1fr) minmax(380px, 1.05fr);
    min-height: calc(100vh - 220px);
  }
}

/* Hero panel */
.login-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

@media (min-width: 960px) {
  .login-hero {
    min-height: auto;
    align-items: stretch;
  }
}

.login-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(0, 26, 68, 0.35) 0%, rgba(0, 45, 114, 0.55) 55%, rgba(0, 26, 68, 0.75) 100%),
    url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center 40%;
}

.login-hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.75rem 2rem;
  color: #fff;
  max-width: 28rem;
}

@media (min-width: 960px) {
  .login-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 3rem 2.5rem 2.75rem;
    max-width: none;
  }
}

.login-hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.login-hero-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 22rem;
}

@media (min-width: 960px) {
  .login-hero-lead {
    margin-bottom: auto;
    padding-top: 2rem;
  }
}

.login-confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.75rem 0 0;
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  backdrop-filter: blur(6px);
}

@media (min-width: 960px) {
  .login-confidence-badge {
    margin-top: 2rem;
  }
}

/* Form panel */
.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 2.5rem 1.5rem;
}

@media (min-width: 960px) {
  .login-form-panel {
    padding: 3rem 2.5rem;
  }
}

.login-form-inner {
  width: 100%;
  max-width: 400px;
}

.login-heading {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.login-sub {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.login-error {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

.login-error--hidden {
  display: none;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.page-login .input-wrap {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.page-login .input-wrap:focus-within {
  background: #fff;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.login-options a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

.login-options a:hover {
  text-decoration: underline;
}

.btn-login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-login-submit:hover {
  background: var(--navy-dark);
}

.login-divider {
  height: 1px;
  margin: 1.5rem 0;
  background: var(--border);
}

.login-switch {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.login-switch a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.login-switch a:hover {
  text-decoration: underline;
}

.login-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.login-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.login-trust svg {
  opacity: 0.7;
}

/* Login footer */
.site-footer--login {
  margin-top: 0;
  flex-shrink: 0;
}

.footer-bar--center p {
  text-align: center;
}

.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-lang:hover {
  color: var(--navy);
}

.footer-brand .logo {
  text-decoration: none;
}
