
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f4f6f8;
    color: #222;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 96px);
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 16px;
}

.auth-box {
    width: 100%;
    padding: 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.auth-box h1 {
    margin: 0 0 18px;
}

.auth-form {
    display: grid;
    gap: 10px;
}

.auth-form label {
    font-weight: bold;
}

.auth-form input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #bbb;
    border-radius: 8px;
    font: inherit;
}

.auth-form input:focus {
    border-color: #777;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
    outline: none;
}

.auth-form button,
.auth-button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 10px 14px;
    border: 1px solid #999;
    border-radius: 8px;
    background: #222;
    color: #fff;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.auth-form button:hover,
.auth-button-link:hover {
    background: #444;
}

.auth-message {
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.auth-error {
    background: #ffe1e1;
    border-color: #cc6666;
    color: #900;
}

.auth-success,
.auth-info {
    background: #eef8ee;
    border-color: #9ac79a;
}

.auth-note {
    margin-bottom: 0;
    color: #555;
}

.auth-field-hint {
    margin: -4px 0 4px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.35;
}

.auth-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* Passwortsichtbarkeit im Login, ohne die Submit-Schaltfläche zu beeinflussen. */
.auth-password-field {
    position: relative;
}

.auth-password-field input {
    padding-right: 56px;
}

.auth-form .auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #444;
    cursor: pointer;
}

.auth-form .auth-password-toggle:hover,
.auth-form .auth-password-toggle:active,
.auth-form .auth-password-toggle:focus-visible {
    background: transparent;
}

.auth-form .auth-password-toggle:hover {
    color: #222;
}

.auth-form .auth-password-toggle:focus-visible {
    outline: 2px solid #333;
    outline-offset: 1px;
}

.auth-password-icon {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-password-eye-slash {
    display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-password-eye-slash {
    display: block;
}
