/*
 * passwort-aendern.css – Seite "Passwort ändern" (Prüfbericht S12)
 *
 * Eigene Datei statt <style>-Block und style-Attributen: Die Seite kommt ohne
 * Inline-CSS aus und braucht damit kein 'unsafe-inline' in der CSP.
 * Gestaltung wie reset-password.html.
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4c5fd5 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 420px;
    width: 100%;
}

.auth-header {
    background: linear-gradient(135deg, #4c5fd5 0%, #764ba2 100%);
    padding: 36px 30px;
    text-align: center;
    color: white;
}

.auth-header h1 {
    font-size: 26px;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    opacity: 0.9;
}

.auth-body {
    padding: 36px 30px;
}

.info-text {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
}

.form-group input:focus {
    border-color: #4c5fd5;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.password-toggle {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    /* WCAG 2.2, 2.5.8: Klickfläche mindestens 24 × 24 Pixel (Rechtsfrage C-26, Antwort 14) */
    min-width: 32px;
    min-height: 32px;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.password-requirements {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}

.btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4c5fd5 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.erfolg-icon {
    font-size: 56px;
    text-align: center;
    margin-bottom: 16px;
}

.erfolg-titel {
    text-align: center;
    color: #1e7e34;
    margin-bottom: 14px;
}

.auth-footer {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e1e8ed;
}

.auth-footer a {
    color: #4c51bf;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

[hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .auth-header,
    .auth-body {
        padding: 25px 20px;
    }

    .form-group input {
        font-size: 16px; /* verhindert iOS-Zoom */
    }
}
