/* HostSentra Mail login: served stylesheet, compatible with CSP style-src self. */
#hsLoginForm #hsPasswordlessLogin {
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-height:48px !important;
  box-sizing:border-box !important;
  margin:20px 0 0 !important;
}
#hsLoginForm.hs-login-password-mode #hsPasswordlessLogin {
  display:none !important;
}
#hsLoginForm #hsPasswordAlternative {
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  margin:12px 0 0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
}
#hsLoginForm #hsPasswordAlternative > summary,
#hsLoginForm #hsReturnToPasskey {
  display:block !important;
  width:100% !important;
  min-height:35px !important;
  margin:0 !important;
  padding:8px 2px !important;
  box-sizing:border-box !important;
  border:0 !important;
  border-radius:4px !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#34496a !important;
  font-family:inherit !important;
  font-size:14px !important;
  font-weight:400 !important;
  line-height:1.5 !important;
  text-align:center !important;
  cursor:pointer !important;
  text-decoration:underline !important;
  text-underline-offset:3px !important;
  list-style:none !important;
  appearance:none !important;
  -webkit-appearance:none !important;
}
#hsLoginForm #hsPasswordAlternative > summary::before,
#hsLoginForm #hsReturnToPasskey::before {
  content:"▾";
  display:inline-block;
  margin-right:7px;
  text-decoration:none !important;
}
#hsLoginForm #hsPasswordAlternative > summary::-webkit-details-marker {display:none !important;}
#hsLoginForm #hsPasswordAlternative > summary::marker {content:"";}
#hsLoginForm #hsPasswordAlternative[open] > summary {display:none !important;}
#hsLoginForm #hsPasswordAlternative > summary:hover,
#hsLoginForm #hsReturnToPasskey:hover {background:rgba(52,73,106,.06) !important;}
#hsLoginForm #hsPasswordAlternative > summary:focus-visible,
#hsLoginForm #hsReturnToPasskey:focus-visible {outline:2px solid #285ff0 !important;outline-offset:2px !important;}
#hsLoginForm #hsPasswordAlternative label {display:block !important;width:100% !important;margin:6px 0 8px !important;}
#hsLoginForm #hsPasswordAlternative input[type=password] {
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-height:44px !important;
  box-sizing:border-box !important;
  margin:0 !important;
}
#hsLoginForm #hsPasswordAlternative button[type=submit],
#hsLoginForm #hsPasswordAlternative input[type=submit] {
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-height:48px !important;
  box-sizing:border-box !important;
  margin:20px 0 0 !important;
  padding:10px 16px !important;
  border-radius:8px !important;
}
#hsLoginForm #hsReturnToPasskey {margin:18px 0 0 !important;}
#hsSecurityPreferences {border-top:1px solid rgba(128,128,128,.35);margin-top:18px;padding:15px 4px 4px;}
#hsSecurityPreferences button {cursor:pointer;margin-top:7px;}
#hsSecurityPreferences .hs-security-help {font-size:.85em;opacity:.8;margin:6px 0;}

/* HOSTSENTRA_MAIL_LOGIN_DESIGN_9 */

/* Admin-Portal-aehnliche Login-Karte */
#hsLogin {
    background: #f1f5fb !important;
    min-height: 100vh;
    padding: 24px;
    box-sizing: border-box;
}

#hsLoginForm {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: min(430px, 100%) !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 32px 36px 34px !important;
    border: 1px solid #e0e7f0 !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 15px 42px rgba(23,44,79,.08) !important;
    color: #10274d !important;
}

/* Originales HostSentra-Logo */
#hsLoginForm .hs-login-brand {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 95px !important;
    min-height: 95px !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    font-size: 0 !important;
    background: url('/webmail/static/hostsentra-logo.png')
                left center / contain no-repeat !important;
}

#hsLoginForm .hs-login-brand span {
    display: none !important;
}

/* Titel und Beschreibung */
#hsLoginForm > h1,
#hsTotpInline > h1 {
    margin: 0 0 12px !important;
    font-size: 23px !important;
    line-height: 1.25 !important;
    font-weight: 750 !important;
    color: #10274d !important;
}

#hsLoginForm > p:not(#hsLoginError) {
    margin: 0 0 24px !important;
    color: #667b98 !important;
    line-height: 1.5 !important;
}

/* Keine Luecke zwischen E-Mail und Passwort */
#hsLoginForm > label,
#hsLoginForm #hsPasswordAlternative,
#hsLoginForm #hsPasswordAlternative[open] {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

#hsLoginForm > label,
#hsLoginForm #hsPasswordAlternative label,
#hsTotpInline label {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    margin: 0 0 18px !important;
    color: #172d4e !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

#hsLoginForm input,
#hsLoginForm select,
#hsLoginForm #hsPasswordAlternative input[type=password] {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 11px 13px !important;
    background: #fff !important;
    color: #12284b !important;
    border: 1px solid #c7d2e2 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    font: inherit !important;
    font-size: 14px !important;
}

#hsLoginForm input:focus,
#hsLoginForm select:focus {
    outline: 2px solid #2963ed !important;
    outline-offset: 1px !important;
}

/* Hauptaktionen wie im Admin-Portal */
#hsLoginForm button[type=submit],
#hsLoginForm #hsPasswordAlternative button[type=submit],
#hsLoginForm .hs-auth-primary {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 46px !important;
    margin: 4px 0 0 !important;
    padding: 12px 16px !important;
    background: #2963eb !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 9px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: center !important;
}

#hsLoginForm #hsPasswordAlternative > summary,
#hsLoginForm #hsReturnToPasskey {
    margin-top: 14px !important;
    color: #38577f !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}

/* Zweiter Schritt: nur Authenticator */
#hsTotpInline {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #10274d !important;
}

#hsTotpInline > .hs-auth-note {
    margin: 0 0 24px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #667b98 !important;
    overflow-wrap: anywhere;
}

#hsTotpInline .hs-auth-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 4px !important;
}

#hsTotpInline .hs-auth-actions button {
    display: block !important;
    width: 100% !important;
    min-height: 46px !important;
    padding: 12px 14px !important;
    border-radius: 9px !important;
    font-size: 14px !important;
    font-weight: 650 !important;
}

#hsTotpInline .hs-auth-primary {
    background: #2963eb !important;
    color: white !important;
    border: 0 !important;
}

#hsTotpInline .hs-auth-secondary {
    background: white !important;
    color: #244875 !important;
    border: 1px solid #c7d2e2 !important;
}

#hsTotpInline .hs-auth-error,
#hsLoginError {
    min-height: 0 !important;
    margin: 0 0 12px !important;
    color: #bc2932 !important;
    font-size: 13px !important;
}

#hsTotpInline .hs-auth-error:empty,
#hsLoginError:empty {
    display: none !important;
}

@media (max-width: 480px) {
    #hsLoginForm {
        padding: 25px 22px 28px !important;
    }
    #hsLoginForm .hs-login-brand {
        height: 80px !important;
        min-height: 80px !important;
        margin-bottom: 18px !important;
    }
}

/* HOSTSENTRA_2FA_DROPDOWN_COLOR_1 */
#hsTotpInline select {
    color-scheme: light !important;
    background-color: #ffffff !important;
    color: #172d4e !important;
}

#hsTotpInline select option {
    background-color: #ffffff !important;
    color: #172d4e !important;
    font-weight: 500 !important;
}

#hsTotpInline select option:checked {
    background-color: #dbeafe !important;
    color: #10274d !important;
    font-weight: 700 !important;
}

/* HOSTSENTRA_LOGIN_CARD_VISIBLE_V2 */
#hsLogin.hs-login {
    background: #e5ecf6 !important;
}

#hsLogin #hsLoginForm {
    background: #ffffff !important;
    border: 2px solid #a7b9d2 !important;
    border-radius: 22px !important;
    box-shadow:
        0 22px 60px rgba(13, 36, 76, 0.24),
        0 5px 18px rgba(13, 36, 76, 0.15) !important;
}
