/* ──────────────────────────────────────────────────────────────
   Card layout base
   Shared layout primitives for Razor pages rendered as cards.
   ────────────────────────────────────────────────────────────── */

.card-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100%;
    padding: 48px 20px;
}

.card-wrap--content {
    padding-block: clamp(36px, 7vh, 72px);
}

.card-wrap--centered {
    align-items: center;
}

.card-panel {
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    background: var(--tile-bg, #fff);
    border-radius: 10px;
    box-shadow: 0 0 24px rgba(0, 0, 0, .09);
}

.card-panel--wide {
    max-width: 680px;
}

.card-panel--medium {
    max-width: 540px;
}

.card-panel-header {
    background: var(--nav-bg, #333);
    padding: 20px 28px;
    text-align: center;
}

.card-panel-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
}

.card-panel-body {
    padding: 28px;
}

.card-panel--wide .card-panel-body {
    padding: 32px 36px;
}

/* ──────────────────────────────────────────────────────────────
   Static / legal content
   Used by static text pages such as Impressum / legal notes.
   ────────────────────────────────────────────────────────────── */

.legal-content h2 {
    margin-bottom: 24px;
    color: var(--text-dark);
    font-size: 1.15em;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.legal-content strong {
    color: var(--text-mid);
}

/* ──────────────────────────────────────────────────────────────
   Forms
   Shared form styling used inside card panels.
   ────────────────────────────────────────────────────────────── */

.card-panel .form-label {
    color: var(--text-muted);
    font-size: .88em;
}

/* ──────────────────────────────────────────────────────────────
   Notifications
   Shared notification card content.
   ────────────────────────────────────────────────────────────── */

.notification-body {
    padding: 28px;
    text-align: center;
}

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    font-size: 22px;
}

.notification-headline {
    margin-bottom: 8px;
    font-size: .95em;
    font-weight: 600;
}

.notification-message {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: .88em;
    line-height: 1.6;
    text-align: left;
}

.notification-bullets {
    margin: 0 0 12px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: .88em;
    line-height: 1.6;
    list-style: disc;
    text-align: left;
}

.notification-bullets li {
    margin-bottom: 4px;
}

.notification-contact {
    margin-bottom: 20px;
    padding: 10px 14px;
    border: 1px solid #eee;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: .8em;
}

.notification-contact-link {
    color: var(--accent);
    text-decoration: underline;
}

.notification-contact-link:hover {
    color: #0b5ed7;
}

.notification-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    color: #fff;
    font-size: .9em;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
}

/* ──────────────────────────────────────────────────────────────
   Notification variants
   ────────────────────────────────────────────────────────────── */

.success .notification-icon {
    background: #eaf3de;
    color: #3b6d11;
}

.success .notification-headline {
    color: #3b6d11;
}

.success .notification-btn {
    background: #1d9e75;
}

.success .notification-btn:hover {
    background: #187f5f;
    color: #fff;
}

.error .notification-icon {
    background: #fcebeb;
    color: #a32d2d;
}

.error .notification-headline {
    color: #a32d2d;
}

.error .notification-btn {
    background: #a32d2d;
}

.error .notification-btn:hover {
    background: #851f1f;
    color: #fff;
}

.warning .notification-icon {
    background: #faeeda;
    color: #854f0b;
}

.warning .notification-headline {
    color: #854f0b;
}

.warning .notification-btn {
    background: #854f0b;
}

.warning .notification-btn:hover {
    background: #633806;
    color: #fff;
}

.info .notification-icon {
    background: #e6f1fb;
    color: #185fa5;
}

.info .notification-headline {
    color: #185fa5;
}

.info .notification-btn {
    background: #185fa5;
}

.info .notification-btn:hover {
    background: #0c447c;
    color: #fff;
}


/* ──────────────────────────────────────────────────────────────
   Error pages
   ────────────────────────────────────────────────────────────── */

.error-content {
    text-align: center;
}

.error-icon {
    margin-bottom: 20px;
}

.error-title {
    margin-bottom: 10px;
    font-size: 1.15em;
    font-weight: 600;
}

.error-description {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: .95em;
    line-height: 1.6;
}

.error-request-id {
    margin-bottom: 22px;
    color: var(--text-muted);
    font-size: .82em;
}

.error-action {
    min-width: 170px;
}

/* ──────────────────────────────────────────────────────────────
   Responsive adjustments
   ────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .card-wrap {
        padding: 32px 16px;
    }

    .card-panel-body,
    .card-panel--wide .card-panel-body,
    .notification-body {
        padding: 24px 20px;
    }
}

/* ──────────────────────────────────────────────────────────────
   Login forms
   ────────────────────────────────────────────────────────────── */

.login-validation-summary {
    font-size: .88em;
    border-radius: 6px;
}

.login-checkbox-label {
    font-size: .85em;
}

/* ──────────────────────────────────────────────────────────────
   Password components
   ────────────────────────────────────────────────────────────── */

.password-toggle-btn {
    z-index: 10;
}

.password-requirements {
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #f8f9fa;
}

.password-requirements-title {
    margin-bottom: 8px;
    font-size: .9em;
    font-weight: 600;
}

.password-strength-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.password-strength-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: .85em;
}

.password-strength-list li:last-child {
    margin-bottom: 0;
}