/* Authentication Modal Styles */

.auth-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

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

.auth-modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border: 3px solid var(--secondary-color);
    width: 90%;
    max-width: 450px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
}

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

.auth-close {
    color: var(--primary-color);
    float: right;
    font-size: 32px;
    font-weight: bold;
    padding: 15px 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.auth-close:hover,
.auth-close:focus {
    color: var(--secondary-color);
}

.auth-tabs {
    display: flex;
    background-color: var(--light-gray);
    border-bottom: 3px solid var(--secondary-color);
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
}

.auth-tab:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.auth-tab.active {
    background-color: var(--white);
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    margin-bottom: -3px;
}

.auth-form {
    display: none;
    padding: 30px;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.auth-form p {
    text-align: center;
    color: var(--text-color);
    font-size: 14px;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    margin-top: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-btn:hover {
    background-color: #0a231a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 49, 36, 0.3);
}

.auth-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.auth-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.auth-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.auth-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #66bb6a;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .auth-form {
        padding: 20px;
    }

    .auth-tab {
        font-size: 14px;
        padding: 12px;
    }
}
