/* ═══════════════════════════════════════════════════════════════
   passwort-vergessen.css – KTS Beförderung
   Einbinden in passwort-vergessen.php via header.php oder direkt
   ═══════════════════════════════════════════════════════════════ */

/* ── Seitenhintergrund ────────────────────────────────────────── */
.pw-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    padding: 2rem 1rem;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ── Card ─────────────────────────────────────────────────────── */
.pw-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 440px;
}

/* ── Branding ─────────────────────────────────────────────────── */
.pw-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.pw-brand__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
}

.pw-brand__name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: 0.01em;
}

/* ── Überschrift & Beschreibung ───────────────────────────────── */
.pw-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 0.5rem 0;
}

.pw-desc {
    font-size: 0.93rem;
    color: #5a6a7a;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

/* ── Formularfeld ─────────────────────────────────────────────── */
.pw-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.pw-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e3a5f;
}

.pw-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 7px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}

.pw-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: #ffffff;
}

.pw-input--error {
    border-color: #dc2626;
    background: #fff5f5;
}

.pw-input--error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.pw-hint {
    font-size: 0.8rem;
    color: #64748b;
}

/* ── Button ───────────────────────────────────────────────────── */
.pw-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #2563eb;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 0.25rem;
}

.pw-btn:hover {
    background: #1d4ed8;
}

.pw-btn:active {
    transform: scale(0.98);
}

.pw-btn:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

/* ── Alerts ───────────────────────────────────────────────────── */
.pw-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: 7px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.pw-alert--err {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.pw-alert--ok {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #15803d;
}

.pw-alert__icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* ── Trennlinie ───────────────────────────────────────────────── */
.pw-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.5rem 0 1rem 0;
}

/* ── Footer-Link ──────────────────────────────────────────────── */
.pw-footer {
    text-align: center;
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
}

.pw-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.pw-link:hover {
    text-decoration: underline;
}

.pw-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 3px;
}

.pw-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 7px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

/* ── Responsiv ────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .pw-card {
        padding: 1.75rem 1.25rem;
        border-radius: 8px;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }

    .pw-title {
        font-size: 1.3rem;
    }
}
