/* Gustav-Ziegler-Areal | Haus A
 * Besucher-Passwortseite (Plugin "Password Protected")
 * Dateipfad: wp-content/themes/gza-haus-a-block-fse/password-protected-login.css
 * Nur Styling. Keine Aenderung an Authentifizierung oder Berechtigungen.
 */

body.login.login-password-protected {
    background: #f3f5f1;
    color: #2f4038;
    font-family: Aptos, "Noto Sans", "Segoe UI", Arial, sans-serif;
}

body.login.login-password-protected #login {
    width: min(400px, calc(100% - 40px));
    margin: 0 auto;
    padding-top: clamp(32px, 9vh, 90px);
}

/* Nur das Logo der Besucher-Passwortseite aendern, nicht wp-login.php. */
body.login.login-password-protected #password-protected-logo a {
    display: block;
    width: 128px;
    height: 128px;
    margin: 0 auto 22px;
    padding: 0;
    background-image: url("https://haus-a.gustav-ziegler-areal.de/wp-content/uploads/2026/10/cropped-58-Logo-HAUS-A-quadrat.png") !important;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    box-shadow: none;
}

body.login.login-password-protected #password-protected-logo {
    margin-bottom: 16px;
}

/* Bewusst nur eine kurze visuelle Kennzeichnung; kein neues Formular. */
body.login.login-password-protected #password-protected-logo::after {
    content: "Haus A · Geschützter Testzugang";
    display: block;
    margin: -5px auto 15px;
    text-align: center;
    color: #43584a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .015em;
}

body.login.login-password-protected #loginform {
    background: #ffffff;
    border: 1px solid #dde5dd;
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(33, 49, 40, .09);
    padding: 28px;
}

body.login.login-password-protected #loginform label {
    color: #304238;
    font-weight: 600;
}

body.login.login-password-protected #loginform input[type="password"] {
    box-sizing: border-box;
    min-height: 46px;
    border: 1px solid #b9c9bd;
    border-radius: 5px;
    background: #ffffff;
    color: #26382f;
    box-shadow: none;
}

body.login.login-password-protected #loginform input[type="password"]:focus-visible,
body.login.login-password-protected #loginform button:focus-visible,
body.login.login-password-protected #loginform input[type="submit"]:focus-visible {
    outline: 3px solid #a5bd9b;
    outline-offset: 2px;
}

body.login.login-password-protected #loginform .button-primary {
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid #2f493b;
    border-radius: 5px;
    background: #2f493b;
    color: #ffffff;
    font-weight: 600;
    text-shadow: none;
    box-shadow: none;
}

body.login.login-password-protected #loginform .button-primary:hover {
    border-color: #22382d;
    background: #22382d;
}

body.login.login-password-protected #login_error,
body.login.login-password-protected .message {
    border-left-color: #647c61;
    border-radius: 4px;
}

@media (max-width: 480px) {
    body.login.login-password-protected #login { width: calc(100% - 32px); }
    body.login.login-password-protected #loginform { padding: 22px 20px; }
    body.login.login-password-protected #password-protected-logo a { width: 110px; height: 110px; }
}
