/* 
 * OUDIFY — Auth Modal Styling 
 */

.modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal, 300);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal__content {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    /* Add padding via style attr in JS, but ensure core layout config */
}

/* Animations are defined globally in animations.css, 
   but we handle visibility trigger here. */
.modal.visible .modal__content {
    /* Enforce slide up reset if needed */
    transform: translateY(0);
}