/* Login & registration in the customer app look (reference screen "Login").
   Loaded only on the guest auth pages; the forms and their fields are unchanged. */
/* One continuous backdrop per format, generated for the login from the brand brief:
   portrait for phones, landscape for everything wider. Chamber right, ice on the edges,
   a calm dark middle for the form; a light veil keeps the fields readable. */
html:has(> body.auth-page) {
  background:
    linear-gradient(180deg, #02101a40 0%, #02101a1a 30%, #02101a73 70%, #02101ab3 100%),
    url('../img/customer/login-bg-mobile.png') center top / cover no-repeat,
    #02101a;
  background-attachment: fixed;
}
@media (min-aspect-ratio: 4/5) {
  html:has(> body.auth-page) {
    background:
      radial-gradient(34% 62% at 50% 52%, #02101ab3 0%, #02101a4d 70%, #02101a00 100%),
      url('../img/customer/login-bg-desktop.png') center / cover no-repeat,
      #02101a;
    background-attachment: fixed;
  }
}
body.auth-page { background: transparent !important; color: #eaf3f8; min-height: 100dvh; }
body.auth-page .auth-shell { position: relative; }
body.auth-page .auth-shell__card { position: relative; z-index: 1; }
body.auth-page .auth-moving-bg, body.auth-page .bg-aoc-fog { display: none; }
body.auth-page .site-nav { background: transparent; border: 0; box-shadow: none; }
body.auth-page .site-nav .site-logo { display: none; }
body.auth-page .site-main { background: transparent; border: 0; box-shadow: none; }
body.auth-page .site-footer { background: transparent; border: 0; }

body.auth-page .auth-shell__card { max-width: 420px; padding: 8px 4px 24px; background: transparent !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none; }
body.auth-page .auth-shell__card--wide { max-width: 640px; }
body.auth-page .auth-shell__head { margin-bottom: 18px; }
body.auth-page .auth-shell__logo { width: 190px; height: auto; margin: 0 auto 14px; display: block; }
body.auth-page .auth-shell__title { font-size: 24px; font-weight: 500; color: #f2f7fa !important; }
body.auth-page .auth-shell__sub { font-size: 14px; max-width: 100%; overflow-wrap: anywhere; }

body.auth-page .auth-form .form-label { color: #a9bfcd !important; font-weight: 500; font-size: 13px; }
body.auth-page .auth-card .form-control { min-height: 50px; color: #e3f0f7; background: #041b29cc; border: 1px solid #245066; border-radius: 9px; }
body.auth-page .auth-card .form-control:focus { border-color: #3cdef5; box-shadow: 0 0 0 3px #30d7f324; }
body.auth-page .auth-form .input-icon > i { color: #6f93a6; }
body.auth-page .auth-form__forgot { display: block; margin-top: 8px; text-align: right; font-size: 13px; }
body.auth-page .auth-card a { color: #30d7f3 !important; text-decoration: none; }
body.auth-page .auth-card a:hover { text-decoration: underline; }
body.auth-page .auth-card .form-check-label { color: #d6e5ee !important; }
body.auth-page .auth-card .form-text { font-size: 12px; }
body.auth-page .auth-card .btn.auth-shell__submit { width: 100%; min-height: 52px; font-size: 16px !important; font-weight: 600; color: #002432 !important; background: linear-gradient(110deg, #22d6ec, #35d4f5) !important; border: 1px solid #38dff5 !important; box-shadow: 0 0 18px #12cce540 !important; }

body.auth-page .passkey-alt { margin-top: 22px; }
body.auth-page .passkey-alt__sep { color: #8fa9b8; }
body.auth-page .passkey-alt .btn { min-height: 48px; border-radius: 999px !important; }

body.auth-page .auth-shell__foot { justify-content: center; gap: 6px; margin-top: 24px; border: 0; color: #a9bfcd; font-size: 14px; }
body.auth-page .auth-shell__foot .btn { min-height: 0; padding: 0; border: 0; background: none; color: #30d7f3; font-size: 14px; box-shadow: none; }
body.auth-page .auth-shell__foot .btn::after { display: none; }

/* Compact login: logo, heading and form sit higher and closer, so the whole form incl.
   "Registrieren" fits a phone screen without scrolling. */
body.auth-page .site-main { margin-top: 0 !important; padding-top: 0 !important; }
body.auth-page .auth-shell { padding-top: 0 !important; }
body.auth-page .auth-shell__card { padding-top: 0; }
body.auth-page .auth-shell__title { margin-bottom: 4px; }
body.auth-page .auth-form .mb-3 { margin-bottom: 12px !important; }
body.auth-page .auth-shell__logo { width: 176px; margin-bottom: 10px; }
body.auth-page .auth-shell__head { margin-bottom: 14px; }
body.auth-page .auth-card .form-check .form-text { font-size: 11.5px; line-height: 1.35; }
body.auth-page .passkey-alt { margin-top: 14px; }
body.auth-page .auth-shell__foot { margin-top: 12px; }
@media (max-width: 575.98px) {
  body.auth-page .auth-shell { margin-top: -30px; }
  body.auth-page .auth-card .form-control { min-height: 46px; }
}

/* The top bar is transparent here — so it must not blur either. Its base style (app.css
   .site-nav) carries backdrop-filter: blur(), which smeared the logo and anything scrolling
   underneath the ☰ bar at the top of the screen. */
body.auth-page .site-nav { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* The top bar keeps its height even when it is empty: in the installed app the install icon
   stays hidden, the bar collapsed and pushed the logo up against the status bar. Same spacing
   in the app as in the browser. */
body.auth-page .site-nav { min-height: 56px; padding-top: max(8px, env(safe-area-inset-top)); }

/* Registration: everything from e-mail on appears after the first input above (see register.php),
   so the entry incl. "Zurück zum Login" fits the first screen. */
body.auth-page .register-more.is-collapsed { display: none; }
body.auth-page .register-more.is-revealed { animation: register-reveal .45s ease-out; }
@keyframes register-reveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body.auth-page .register-more.is-revealed { animation: none; } }
