/* Login-specific brand tokens. See docs/identity-brand-style.md. */
body.ef-login {
  --ef-dark: #252525;
  --ef-surface: #424242;
  --ef-light: #eeebeb;
  --ef-yellow: #faee38;
  --ef-orange: #f68d33;
  --ef-orange-red: #f35a2f;
  --ef-gradient: linear-gradient(110deg, var(--ef-yellow), var(--ef-orange-red));
  background: var(--ef-dark);
  color: var(--ef-light);
  font-family: 'Montserrat', Arial, sans-serif;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}
.ef-login::before { content: ''; height: 6px; flex-shrink: 0; background: var(--ef-gradient); }
.ef-login > .container { flex: 1 0 auto; height: auto; min-height: 0; width: 100%; max-width: none; background: transparent; display: flex; align-items: center; justify-content: center; padding: 24px 20px; }
.ef-login .login-page { width: 100%; height: auto; }
.ef-login .login-page .row { height: auto; }
.ef-login .login-page .card { flex: 0 1 440px; max-width: 440px; padding: 0; background: #2e2e2e; border: 1px solid #555; border-radius: 18px; box-shadow: 0 20px 60px #0004; overflow: hidden; }
.ef-login .card::before { content: ''; display: block; height: 4px; background: var(--ef-gradient); }
.ef-login .card-body { padding: 24px 28px; }
.ef-login .page-header { margin: 0 0 20px; text-align: center; }
.ef-login .page-header img.ef-login-logo { width: 298.5px; height: auto; max-width: 100%; object-fit: contain; margin: 0 auto 16px; border-radius: 4px; }
.ef-login .login-page .page-header h2 { font-family: inherit; height: auto; color: var(--ef-light); font-size: 26px; font-weight: 800; line-height: 1.25; margin: 0 0 10px; }
.ef-login .ef-login-intro { font-size: 14px; color: #d4d0d0; margin: 0; }
.ef-login .login-page .form-control { font-family: inherit; background: var(--ef-surface) !important; color: var(--ef-light) !important; border: 1px solid #777; border-radius: 8px !important; min-height: 50px; padding: 12px 14px; font-size: 15px; }
.ef-login .form-control::placeholder { color: #cfcbcb; opacity: 1; }
.ef-login .form-control:focus { border-color: var(--ef-yellow); box-shadow: 0 0 0 3px #faee3833; }
.ef-login #password { padding-right: 52px !important; }
.ef-login .login-page .toggle-password-eye { display: grid; place-items: center; position: absolute; right: 4px; top: 4px; width: 42px; height: 42px; border: 0; border-radius: 6px; background: transparent; color: var(--ef-light); z-index: 4; cursor: pointer; }
.ef-login .login-page .remember, .ef-login .login-page .forgot { font-family: inherit; font-size: 13px; }
.ef-login .login-page .remember { color: var(--ef-light); display: inline-flex; gap: 8px; align-items: center; }
.ef-login input[type=checkbox] { accent-color: var(--ef-yellow); width: 17px; height: 17px; }
.ef-login a { color: var(--ef-orange); text-decoration: underline; text-underline-offset: 3px; }
.ef-login a:hover { color: var(--ef-yellow); }
.ef-login .login-page .forgot { color: var(--ef-orange); }
.ef-login .btn { font-family: inherit; min-height: 48px; border-radius: 8px; font-weight: 700; }
.ef-login .btn-primary { background: var(--ef-gradient); border: 0; color: #151515; text-transform: uppercase; font-size: 17px; letter-spacing: .04em; }
.ef-login .btn-primary:hover { background: var(--ef-orange); color: #151515; }
.ef-login .login-page .external-login { background: var(--ef-light); color: var(--ef-dark); border: 1px solid var(--ef-light); display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%; white-space: normal; font-size: 12px; padding: 10px; }
.ef-login .external-login:hover { background: #fff; }
.ef-login .login-page .login-with-text { display: flex; gap: 12px; align-items: center; font: 500 12px 'Montserrat', Arial, sans-serif; color: #cfcbcb; margin: 8px 0; }
.ef-login .login-page .login-with-text::before, .ef-login .login-page .login-with-text::after { content: ''; position: static; width: auto; height: 1px; flex: 1; background: #646464; }
.ef-login .login-page .register { font-family: inherit; height: auto; color: var(--ef-light); font-size: 13px; line-height: 1.7; margin-bottom: 0; }
.ef-login :is(a, button, input):focus-visible { outline: 2px solid var(--ef-yellow); outline-offset: 3px; }
.ef-login > footer { position: static !important; flex: 0 0 auto; height: auto; max-width: 100%; padding: 12px 16px 16px; border-top: 0; text-align: center; background: transparent; }
.ef-login footer h5, .ef-login footer h6 { font-family: inherit; font-size: 12px; line-height: 1.8; color: #cfcbcb; margin: 0; }
.ef-login footer a { display: inline-block; margin: 0 4px; color: var(--ef-light); }
.ef-login .alert { max-width: 480px; margin: 0 auto 20px; border-radius: 8px; }
@media (max-width: 575px) {
  .ef-login > .container { padding: 24px 16px; }
  .ef-login .card-body { padding: 24px 20px; }
  .ef-login .login-page .card { flex-basis: 100%; max-width: 100%; }
  .ef-login .login-remember .col-sm-6 { width: 50%; }
}

/* Avoid nested Bootstrap form groups adding a second row of spacing. */
.ef-login .login-page .form-group { margin-bottom: 14px; }
.ef-login .login-page .form-group .form-group,
.ef-login .login-page fieldset > .form-group:last-child { margin-bottom: 0; }
@media (max-height: 740px) and (min-width: 576px) {
  .ef-login > .container { padding-block: 16px; }
  .ef-login .card-body { padding-block: 20px; }
  .ef-login .page-header { margin-bottom: 16px; }
  .ef-login .page-header img.ef-login-logo { margin-bottom: 10px; }
}
