/* ===== Seiten-Hintergrund ===== */
body {
    background: #f0f2f5 !important;
    min-height: 100vh !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* ===== Login-Wrapper: zentriert, max. 420px breit ===== */
.pf-v5-c-login__main {
    max-width: 420px !important;
    width: 100% !important;
    margin: 60px auto 60px !important;
}

/* ===== Header: Logo + Titel ===== */
#kc-header {
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
}

#kc-header-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    letter-spacing: -0.3px !important;
}

#kc-header-wrapper::before {
    content: "" !important;
    display: block !important;
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 14px !important;
    background-image: url('../img/SHKV_icon120.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* ===== Login-Karte ===== */
.card-pf {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06) !important;
    padding: 36px 40px 48px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ===== Seitentitel ===== */
#kc-page-title {
    font-size: 17px !important;
    font-weight: 500 !important;
    color: #555 !important;
    margin: 0 0 20px !important;
    text-align: center !important;
}

/* ===== Formular-Gruppen ===== */
.pf-v5-c-form__group {
    margin-bottom: 16px !important;
}

.pf-v5-c-form__label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.01em !important;
}

/* ===== Eingabefelder ===== */
.pf-v5-c-form-control {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    color: #111827 !important;
    background: #fafafa !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
    outline: none !important;
}

.pf-v5-c-form-control:focus {
    border-color: #4f6cf0 !important;
    box-shadow: 0 0 0 3px rgba(79, 108, 240, 0.15) !important;
    background: #fff !important;
}

/* ===== Passwort-Eingabegruppe mit Toggle-Button ===== */
.pf-v5-c-input-group {
    position: relative !important;
    display: block !important;
}

.pf-v5-c-input-group .pf-v5-c-form-control {
    padding-right: 46px !important;
    border-radius: 8px !important;
    border: 1.5px solid #d1d5db !important;
}

.pf-v5-c-button.pf-m-control {
    position: absolute !important;
    right: 1px !important;
    top: 1px !important;
    bottom: 1px !important;
    width: 40px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 7px 7px 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.pf-v5-c-button.pf-m-control:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}

.pf-v5-c-button.pf-m-control i {
    display: inline-block !important;
    color: #9ca3af !important;
    font-size: 15px !important;
}

.pf-v5-c-button.pf-m-control:hover i {
    color: #374151 !important;
}

/* ===== Checkbox + Passwort-vergessen ===== */
.checkbox label {
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkbox input[type=checkbox] {
    accent-color: #4f6cf0;
    width: 15px;
    height: 15px;
}

a {
    color: #4f6cf0 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

a:hover {
    text-decoration: underline !important;
}

/* ===== Anmelden-Button ===== */
#kc-login {
    width: 100% !important;
    padding: 11px 20px !important;
    background: #4f6cf0 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
    margin-top: 8px !important;
}

#kc-login:hover {
    background: #3d5ae0 !important;
}

/* ===== Social-Login-Button (SHKV Intern) ===== */
.pf-v5-c-button.pf-m-secondary {
    width: 100% !important;
    padding: 10px 20px !important;
    background: #fff !important;
    color: #374151 !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.15s, border-color 0.15s !important;
    margin-top: 8px !important;
    text-align: center !important;
    display: block !important;
    box-sizing: border-box !important;
}

.pf-v5-c-button.pf-m-secondary:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
}

/* ===== Alert-Nachrichten ===== */
.pf-v5-c-alert {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
}

.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #2563eb; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #d97706; }
