/* Shared branded action modal (forgot password, etc.) */
.auth-action-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.auth-action-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.auth-action-modal-panel {
    position: relative;
    width: min(100%, 400px);
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
    text-align: center;
    transform: translateY(14px) scale(0.97);
    opacity: 0;
}

.auth-action-modal-overlay.is-open .auth-action-modal-panel {
    animation: authActionModalIn 280ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.auth-action-modal-overlay:not(.is-open) .auth-action-modal-panel {
    animation: none;
    opacity: 0;
    transform: translateY(14px) scale(0.97);
}

@keyframes authActionModalIn {
    from {
        transform: translateY(14px) scale(0.97);
        opacity: 0;
    }
    55% {
        transform: translateY(-3px) scale(1.01);
        opacity: 1;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.auth-action-modal-panel--success {
    border-top: 3px solid var(--color-success);
}

.auth-action-modal-panel--error {
    border-top: 3px solid var(--color-error);
}

.auth-action-modal-logo {
    display: block;
    width: 88px;
    height: auto;
    max-height: 56px;
    object-fit: contain;
    margin: 0 auto 1rem;
    opacity: 0;
    transform: translateY(-8px);
}

.auth-action-modal-overlay:not(.is-open) .auth-action-modal-logo {
    animation: none;
    opacity: 0;
    transform: translateY(-8px);
}

.auth-action-modal-overlay.is-open .auth-action-modal-logo {
    animation: authActionLogoIn 420ms ease 100ms forwards;
}

@keyframes authActionLogoIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-action-modal-title {
    margin: 0 0 0.65rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.25;
}

.auth-action-modal-body {
    margin: 0 0 1.35rem;
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-secondary);
}

.auth-action-modal-btn {
    width: 100%;
    max-width: 12rem;
    margin: 0 auto;
    display: block;
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    min-height: 44px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background var(--duration) var(--ease), transform 160ms ease, box-shadow var(--duration) var(--ease);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.auth-action-modal-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.auth-action-modal-btn:active {
    transform: translateY(0);
}

.auth-action-modal-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
