/* EHFA — Login screen only (does not affect dashboard / app shell) */

body.login-active {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #050a16;
}

body.login-active #login.login-shell {
  display: flex;
}

.login-shell {
  display: none;
  position: relative;
  align-items: center;
  justify-content: flex-end;
  min-height: 100vh;
  width: 100%;
  padding: 28px;
  background-color: #06142b;
  background-image: url("login-alamo-hero.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.login-brand-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}

.login-brand-logo {
  height: 70px;
  width: auto;
  max-width: min(420px, 46vw);
  display: block;
  mix-blend-mode: lighten;
}

.login-panel {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  min-height: auto;
  margin-left: auto;
}

.login-panel .login-card {
  width: min(100%, 483px);
  margin: 0;
  padding: 32px 30px 26px;
  border-radius: 22px;
  border: 1px solid rgba(143, 163, 196, 0.18);
  background: rgba(16, 29, 62, 0.92);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 116, 22, 0.06) inset;
}

.login-card-brand {
  text-align: center;
  margin: 0 0 10px;
}

.login-card-brand .app-branding-name {
  font-size: 39px;
}

.login-card-brand .app-branding-full {
  font-size: 13px;
  margin-top: 4px;
}

.login-card-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 14px;
}

.login-card-hint {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 8px;
  min-height: 1.2em;
}

.login-shell .btn.role-select-hidden {
  display: none !important;
}

.login-shell .input {
  margin: 6px 0 10px;
}

.login-shell .btn.primary {
  margin-top: 14px;
}

.login-shell .app-footer {
  margin-top: 16px;
  padding-bottom: 0;
}

#roleSelect.role-select-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 10, 22, 0.82);
  backdrop-filter: blur(6px);
  max-width: none;
  margin: 0;
}

#roleSelect.role-select-overlay .card {
  width: min(100%, 460px);
  margin: 0;
}

@media (max-width: 1080px) {
  .login-shell {
    padding: 22px;
  }
}

@media (max-width: 900px) {
  .login-shell {
    justify-content: center;
    padding: 18px;
    background-position: center center;
    background-size: contain;
  }

  .login-brand-logo {
    height: 54px;
    max-width: min(320px, 58vw);
  }

  .login-panel {
    min-height: auto;
    padding: 0;
    margin: 0;
  }
}

@media (max-width: 520px) {
  .login-panel .login-card {
    padding: 22px 18px 18px;
  }

  .login-card-brand .app-branding-name {
    font-size: 28px;
  }
}
