/*
 * com.on Lütvogt Portal - Formulare, Meldungen, Konto-Links.
 * Farben über die Szenen-Properties des Themes Lütvogt Basis, mit Fallback
 * für andere Themes. Felder und Buttons gestaltet das Theme.
 */

.clp {
    --clp-line: var(--scene-line, rgba(0, 0, 0, .15));
    --clp-surface: var(--scene-surface, #f6f6f6);
    --clp-accent: #cc8b3b;
    max-width: 640px;
}

.clp--login,
.clp--lost,
.clp--reset {
    max-width: 460px;
}

.clp-form {
    margin: 0;
}

.clp-field {
    margin: 0 0 20px;
}

.clp-field label,
.clp-label {
    display: block;
    margin-bottom: 6px;
}

.clp-field--check label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.clp-row {
    display: grid;
    gap: 0 20px;
}

@media (min-width: 576px) {
    .clp-row {
        grid-template-columns: 1fr 1fr;
    }
}

.clp-readonly {
    display: block;
    font-weight: 600;
}

.clp-hint {
    display: block;
    margin-top: 6px;
    opacity: .75;
}

.clp-actions {
    margin: 28px 0 0;
}

.clp-meta {
    margin: 20px 0 0;
    font-size: .9em;
}

/* Passwort mit Anzeige-Knopf */
.clp-password {
    position: relative;
    display: block;
}

.clp-password input {
    padding-right: 52px;
}

.clp-toggle {
    position: absolute;
    top: 50%;
    right: 2px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transform: translateY(-50%);
}

.clp-toggle svg {
    display: block;
    width: 22px;
    height: 22px;
    margin: auto;
}

.clp-strength {
    display: block;
    margin-top: 6px;
    font-size: .875em;
}

.clp-strength__bar {
    display: block;
    height: 4px;
    margin-bottom: 4px;
    background: var(--clp-line);
    border-radius: 2px;
    overflow: hidden;
}

.clp-strength__bar span {
    display: block;
    width: 0;
    height: 100%;
    background: currentColor;
    transition: width .2s ease;
}

/* Meldungen */
.clp-notice {
    margin: 0 0 24px;
    padding: 12px 16px;
    border-left: 4px solid var(--clp-accent);
    border-radius: 2px;
    background: var(--clp-surface);
}

.clp-notice--success {
    border-left-color: var(--scene-head, #12284c);
}

.clp-pending {
    padding: 10px 14px;
    background: var(--clp-surface);
    border-radius: 2px;
}

/* Abschnitte im Profil */
.clp-card {
    margin: 0 0 40px;
    padding: 0 0 40px;
    border-bottom: 1px solid var(--clp-line);
}

.clp-card:last-of-type {
    border-bottom: 0;
}

.clp-card__title {
    margin-bottom: 24px;
}

/* Konto-Links in der Kopfzeile */
.clp-account {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
}

.clp-account__link {
    text-decoration: none;
}

.clp-account__link:hover {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .clp-account__name {
        display: none;
    }

    .clp-account__link--profile::before {
        content: '';
        display: inline-block;
        width: 22px;
        height: 22px;
        vertical-align: middle;
        background: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .clp-account__link--profile {
        display: inline-flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
    }
}
