/*
==================================================
AETHERIC INTERFACE - AUTHENTICATION MODULE
==================================================
*/

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.auth-modal-content {
    background-color: var(--theme-bg-secondary);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--theme-border-color);
    width: 100%;
    max-width: 400px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.auth-modal.is-visible .auth-modal-content {
    transform: scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--theme-text-secondary);
    cursor: pointer;
    padding: 0;
    font-size: 24px;
}

.auth-modal-close:hover {
    color: var(--theme-text-primary);
}

#auth-form h2 {
    margin-top: 0;
    margin-bottom: 24px;
    text-align: center;
    color: var(--theme-text-primary);
}

.auth-toggle-link {
    text-align: center;
    margin-top: 16px;
}

.auth-toggle-link a {
    cursor: pointer;
    font-weight: 500;
}

.error-message {
    color: #e57373;
    background-color: rgba(229, 115, 115, 0.1);
    border: 1px solid rgba(229, 115, 115, 0.5);
    padding: 10px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}
