/* --- AUTH MODAL CSS --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: var(--white);
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    position: relative;
}
.modal-overlay.show .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
    z-index: 10;
}
.modal-close:hover {
    color: var(--text-color);
}

.modal-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}
.modal-tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.2s;
}
.modal-tab.active {
    background: var(--white);
    color: var(--primary-green);
    border-bottom: 3px solid var(--primary-green);
}
.modal-tab:hover:not(.active) {
    background: #f1f3f5;
}

.modal-body {
    padding: 30px;
}
.modal-form {
    display: none;
}
.modal-form.active {
    display: block;
    animation: fadeIn 0.4s;
}

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

.modal-form .form-group {
    margin-bottom: 20px;
}
.modal-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}
.modal-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.modal-form input:focus {
    outline: none;
    border-color: var(--primary-green);
}
.modal-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-brown);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.modal-btn:hover {
    background: var(--primary-green);
}

.auth-alert {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
