/*
 * Login and 2FA verification screens (login_page.py, two_fa_verify.py).
 * Colors and fonts come from the tokens in lew_theme.css.
 */

.login_body {
  position: fixed;
  inset: 0;
  z-index: 1040;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10vh 1rem 2rem;
  /* brand gradient band, as used for the highlight sections of lew.de */
  background: linear-gradient(135deg, var(--lew-brand) 0%, var(--lew-brand-bold) 55%, var(--lew-navy) 100%);
}

.login_page {
  width: 100%;
  max-width: 26rem;
  padding: 2.5rem 2.25rem 2rem;
  border-radius: var(--lew-radius-lg);
  background-color: var(--lew-white);
  box-shadow: 0 24px 60px rgba(7, 28, 92, 0.35);
  font-family: var(--lew-font);
}

.login_logo {
  display: block;
  width: 7rem;
  margin-bottom: 1.75rem;
}

.sign {
  margin-bottom: 0.25rem;
  color: var(--lew-navy);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left !important;
}

.login_subtitle {
  margin-bottom: 1.75rem;
  color: var(--lew-grey-600);
  font-size: 0.95rem;
}

.login_page .form-label {
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.un,
.pass {
  width: 100%;
  margin-bottom: 1.25rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--lew-grey-300);
  border-radius: var(--lew-radius-md);
  color: var(--lew-navy);
  font-size: 1rem;
}
.un:focus,
.pass:focus {
  border-color: var(--lew-brand) !important;
  box-shadow: var(--lew-focus);
}

.submit {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-size: 1rem;
}

.login_page a {
  color: var(--lew-brand);
  text-decoration: none;
  font-weight: 500;
}
.login_page a:hover {
  color: var(--lew-brand-strong);
  text-decoration: underline;
}

.login_footer {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 600px) {
  .login_body {
    padding-top: 2rem;
  }
  .login_page {
    padding: 2rem 1.5rem 1.5rem;
  }
}

/* link styled as the primary button (verification page is served without Bootstrap) */
a.submit {
  display: block;
  border-radius: var(--lew-radius-pill);
  background-color: var(--lew-brand);
  color: var(--lew-white);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
a.submit:hover {
  background-color: var(--lew-brand-strong);
  color: var(--lew-white);
  text-decoration: none;
}
