/* ── Modal-Overlay ───────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 500;
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
    position: relative;
    animation: slideUp 0.18s ease;
}

@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.9rem;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.modal-close:hover {
    color: var(--color-text);
    background: var(--color-surface-2);
}

/* ── Auth-Formular (innerhalb des Modals) ────────── */
.auth-logo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
}

.auth-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}

.auth-subtitle {
    text-align: center;
    font-size: 0.83rem;
    color: var(--color-text-muted);
    margin-bottom: 1.6rem;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
