﻿.logo {
    height: 60px;
}

.card-max-width {
    max-width: 400px;
    width: 100%;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(179, 0, 0, 0.25);
    border-color: #da8484;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(179, 0, 0, 0.25);
}

.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(179, 0, 0, 0.25);
}

a.nav-link:focus {
    outline: none; /* remove default */
}

.nav-link-in-text {
    display: inline;
    padding: 0px;
}

.form-check-input {
    accent-color: #b30000;
}

    .form-check-input:focus {
        outline: none;
        box-shadow: 0 0 0 1px rgba(179, 0, 0, 0.5);
    }

.nav-link:focus {
    border-color: transparent;
}

#passwordInputField {
    position: relative;
}

#passwordInput {
    padding-right: 2.8rem;
}

#togglePassword {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

    #togglePassword .glyphicon {
        font-size: 1.2rem;
    }

.floating-group {
    position: relative;
    margin-top: 0rem;
    margin-bottom: 2rem;
}

    /* Reduce margin-bottom on floating-group when followed by error */
    .floating-group:has(+ .text-danger:not(:empty)) {
        margin-bottom: 0.5rem; 
    }

.input-icon {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: #777;
}

.toggle-password-icon {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
}

.floating-input {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    padding-top: 1.25rem;
    padding-bottom: 0.5rem;
    height: 3.5rem;
    font-size: 1rem;
}

.floating-label {
    position: absolute;
    top: 50%;
    left: 2.5rem;
    transform: translateY(-50%);
    transition: all 0.2s ease-out;
    color: #777;
    background: transparent;
    padding: 0 0.25rem;
}

.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
    top: 0.7rem; /* Adjust: move just a bit up inside input */
    left: 2.3rem;
    font-size: 0.85rem; 
}

.form-check-label {
    display: flex;
    align-items: center;
}

.large-checkbox {
    transform: scale(1.5);
    margin-top: 0.15rem;
    margin-left: -1rem;
}

.checkbox-label-text {
    margin-left: 0.5rem;
    margin-top: 0.2rem;
}

.multirow-label-text {
    margin-top: -0.2rem;
}

.align-left-consistent {
    margin-left: 0.25rem;
}

.login-footer {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 0.9rem;
}

    .login-footer .footer-left a {
        margin-left: 1rem;
        text-decoration: none;
        color: #333;
    }

        .login-footer .footer-left a:hover {
            text-decoration: underline;
        }

    .login-footer .footer-right a {
        margin-left: 1rem;
        color: #333;
        font-size: 1.2rem;
    }

        .login-footer .footer-right a:hover {
            color: #007bff;
        }

        .login-footer .footer-right a i {
            color: #777;
            transition: color 0.2s;
        }

            .login-footer .footer-right a i:hover {
                color: #b30000; 
            }


.footer-left {
    flex: 0 1 auto;
    white-space: nowrap;
}

.footer-right {
    flex: 0 1 auto;
}

.no-padding {
    padding: 0;
}

.validation-message {
    display: block;
    margin-bottom: 1rem;
}

/* Damit verhindern wir in Edge, dass das Password Reveal Icon auftaucht (default Edge Funktion) */
.hide-reveal::-ms-reveal,
.hide-reveal::-ms-clear {
    display: none;
}




/* =========================
   FWportal IDP Home Styles
   Scoped to .idp-home only
   ========================= */
.idp-home {
    --idp-primary: #232d37; /* dunkelblau */
    --idp-primary-600: #3c4b5a; /* hover */
    --idp-accent: #fa1e78; /* optional */
    --idp-highlight: #ffff00; /* yellow (icons on dark bg) */

    --idp-text: #232d37;
    --idp-bg: #ffffff;
    --idp-muted: rgba(35,45,55,.6);
    --idp-border: rgba(35,45,55,.08);
    --idp-border-strong: rgba(35,45,55,.16);
    --idp-shadow-sm: 0 2px 6px rgba(0,0,0,.05);
    --idp-shadow-lg: 0 10px 30px rgba(0,0,0,.08);
}

    /* Hero */
    .idp-home .hero {
        padding: 2.25rem 1rem 1.75rem;
        text-align: center;
    }

    .idp-home .hero-body {
        max-width: 900px;
        margin: 0 auto;
    }

        .idp-home .hero-body.compact {
            max-width: 640px;
            text-align: center;
        }

            /* Centered-only hero text (non-admin view) */
            .idp-home .hero-body.compact .hero-subtitle.only-text {
                font-size: 1.25rem;
                font-weight: 500;
                color: var(--idp-primary);
                text-align: center;
                margin: 1.5rem auto;
                max-width: 600px;
            }

    .idp-home .hero-title {
        margin: 0 0 .35rem;
        color: var(--idp-primary);
        font-weight: 700;
    }

    .idp-home .hero-subtitle {
        margin: 0 auto;
        color: var(--idp-muted);
        font-size: 1.05rem;
        max-width: 680px;
    }

    .idp-home .hero-logo {
        max-width: 320px;
        width: 100%;
        height: auto;
    }

    /* Call-to-action buttons */
    .idp-home .hero-actions {
        display: flex;
        gap: .6rem;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 1rem;
    }

    .idp-home .cta-btn {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        padding: .6rem .9rem;
        border-radius: 10px;
        border: 1px solid var(--idp-border);
        background: var(--idp-bg);
        color: var(--idp-primary);
        text-decoration: none;
        box-shadow: var(--idp-shadow-sm);
        transition: transform .1s ease, border-color .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
    }

        .idp-home .cta-btn:hover {
            transform: translateY(-1px);
            border-color: var(--idp-border-strong);
            box-shadow: var(--idp-shadow-lg);
        }

        .idp-home .cta-btn.primary {
            background: var(--idp-primary);
            color: var(--idp-highlight);
            border-color: var(--idp-primary);
        }

            .idp-home .cta-btn.primary:hover {
                filter: brightness(1.03);
            }

    /* Card section (License) */
    .idp-home .card {
        background: var(--idp-bg);
        border: 1px solid var(--idp-border);
        border-radius: 14px;
        box-shadow: var(--idp-shadow-sm);
        padding: 1rem 1rem 1.25rem;
        margin: 1.25rem auto 0;
        max-width: 900px;
    }

    .idp-home .card-title {
        margin: .25rem 0 1rem;
        color: var(--idp-primary);
        font-size: 1.15rem;
    }

    /* Key-value grid */
    .idp-home .kv {
        margin: 0;
    }

    .idp-home .kv-row {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 1rem;
        padding: .55rem 0;
        border-top: 1px dashed var(--idp-border);
    }

        .idp-home .kv-row:first-child {
            border-top: 0;
        }

    .idp-home .kv dt {
        margin: 0;
        color: var(--idp-muted);
        font-weight: 600;
    }

    .idp-home .kv dd {
        margin: 0;
        color: var(--idp-primary);
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

        .idp-home .kv dd a {
            word-break: break-word;
            overflow-wrap: anywhere;
        }

/* Mobile stacking: label above value */
@media (max-width: 540px) {
    .idp-home .kv-row {
        grid-template-columns: 1fr; /* stack */
        gap: .25rem;
        padding: .75rem 0;
    }

    .idp-home .kv dt {
        font-size: .95rem;
    }

    .idp-home .kv dd {
        font-size: 1rem;
    }
}

/* Dark mode (optional, if you ever set html[data-theme="dark"]) */
html[data-theme="dark"] .idp-home {
    --idp-bg: #15171a;
    --idp-text: #e7e7e7;
    --idp-muted: rgba(231,231,231,.7);
    --idp-border: rgba(255,255,255,.08);
    --idp-border-strong: rgba(255,255,255,.16);
}

    html[data-theme="dark"] .idp-home .card,
    html[data-theme="dark"] .idp-home .cta-btn {
        background: var(--idp-bg);
    }

/* Styles für die Password Rules */
/* Popup styles */
.password-popup {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 8px;
    font-size: 0.8em;
}

.position-relative:has(+ .validation-message.field-validation-error) .floating-group {
    margin-bottom: .5rem;
}

.icon-check {
    font-size: 1rem;
    vertical-align: middle;
}

.rule-item {
    color: gray;
}

    .rule-item.valid {
        color: green;
    }

    .rule-item.invalid {
        color: red;
    }

progress {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border: 0;
    background-color: #e6e6e6; /* Firefox uses the element for the track */
    border-radius: 4px;
    overflow: hidden; /* clip rounded corners in FF */
    --strength-color: #c62828; /* default; JS will override */
}

    /* WebKit/Blink (Chrome, Edge, Safari) */
    progress::-webkit-progress-bar {
        background-color: #e6e6e6;
        border-radius: 4px;
    }

    progress::-webkit-progress-value {
        background-color: var(--strength-color);
        border-radius: 4px; /* keeps rounded leading edge */
        transition: width .2s ease, background-color .2s ease;
    }

    /* Firefox */
    progress::-moz-progress-bar {
        background-color: var(--strength-color);
        transition: width .2s ease, background-color .2s ease;
    }
