/* Presentation layer for the pinned Authelia 4.39.28 portal. */
:root {
  --primary: #087bce;
  --primary-foreground: #fff;
  --ring: #087bce;
  --input: #ccd9e7;
}
html, body { min-height: 100%; }
body { margin: 0; background: #f3f6fa; color: #15283f; font-family: Arial, Helvetica, sans-serif; }
#root > div > header { display: none; }
#first-factor-stage {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: stretch;
  width: min(880px, calc(100% - 48px));
  min-height: 600px;
  margin: max(32px, calc((100svh - 600px) / 2)) auto 32px;
  overflow: hidden;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 40px #24466a08;
  text-align: left;
}
/* Keep the original portal usable if the branding script does not load. */
#first-factor-stage:not(:has(.cad-brand)) { display: flex; }
#first-factor-stage > .cad-login-content { width: 100%; max-width: none; padding: 94px 60px 64px; margin: 0; align-self: center; }
.cad-brand { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 96px 28px 150px; overflow: hidden; background: #0c7dce; color: #fff; text-align: center; }
.cad-brand-logo { display: block; width: 94px; height: 104px; margin: 0 auto 20px; }
.cad-brand-name { margin: 0 0 14px; font-size: 42px; line-height: 1.1; font-weight: 800; letter-spacing: .3px; }
.cad-brand-description { margin: 0; font-size: 18px; line-height: 1.55; color: #fff; }
.cad-brand-decoration { position: absolute; bottom: -12px; left: -20px; width: 150px; height: 174px; opacity: .6; pointer-events: none; }
#first-factor-stage .w-full:has(> #UserSvg),
#first-factor-stage .w-full:has(> h5) { display: none; }
.cad-login-intro { margin: 0 0 36px; font-size: 15px; line-height: 1.55; color: #657c98; }
#first-factor-stage .cad-login-content > div > .mt-2 { padding: 0; margin: 0; }
#form-login > div { gap: 24px; }
#form-login div:has(> input[data-slot="floating-input"]) { padding-top: 25px; }
#form-login input[data-slot="floating-input"] { height: 48px; padding: 0 14px; border: 1px solid #ccd9e7; border-radius: 6px; background: #fff; font-size: 15px; line-height: normal; color: #15283f; box-shadow: 0 1px 2px #24466a03; }
#form-login #password-textfield { padding-right: 44px; }
#form-login input[data-slot="floating-input"]::placeholder { color: #8a9bb0; opacity: 1; }
#form-login input[data-slot="floating-input"]:focus { border-color: #087bce; outline: 3px solid #087bce20; box-shadow: none; }
#form-login input[data-slot="floating-input"]:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: #15283f; }
#form-login label[for="username-textfield"],
#form-login label[for="password-textfield"] { top: 0; left: 0; transform: none; font-size: 14px; line-height: 20px; font-weight: 400; color: #15283f; }
#form-login button[aria-label="Переключить видимость пароля"] { top: calc(50% + 12.5px); right: 10px; color: #6c819a; }
#form-login .-my-2 { margin: 0; }
#remember-checkbox { width: 19px; height: 19px; border-color: #8da2ba; border-radius: 4px; }
#remember-checkbox[data-checked] { background: #087bce; border-color: #087bce; }
#form-login label[for="remember-checkbox"] { padding-left: 3px; font-size: 14px; font-weight: 400; color: #657c98; cursor: pointer; }
#sign-in-button { height: 48px; border-radius: 6px; background: #087bce; color: white; font-size: 16px; font-weight: 600; text-transform: none; }
#sign-in-button:hover { background: #066bb4; }
#sign-in-button:focus-visible { outline: 3px solid #087bce50; outline-offset: 3px; }
#first-factor-stage a[href="https://www.authelia.com"] { display: none; }
@media (max-width: 680px) {
  #first-factor-stage { grid-template-columns: 1fr; width: min(440px, calc(100% - 32px)); min-height: 0; margin: 24px auto; border-radius: 12px; }
  .cad-brand { padding: 26px 20px; }
  .cad-brand-logo { width: 48px; height: 53px; margin-bottom: 10px; }
  .cad-brand-name { font-size: 30px; margin-bottom: 10px; }
  .cad-brand-description { max-width: 260px; font-size: 14px; line-height: 1.45; }
  .cad-brand-description br { display: none; }
  .cad-brand-decoration { display: none; }
  #first-factor-stage > .cad-login-content { padding: 32px 26px; }
  .cad-login-intro { margin-bottom: 26px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #form-login * { transition: none; }
}
