/* Auth Modal Styles */
.auth-btn {
    background: none;
    border: 2px solid var(--law-blue, #2c3e50);
    color: var(--law-blue, #2c3e50);
    font-size: 16px;
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
}

.auth-btn:hover {
    background-color: var(--law-blue, #2c3e50);
    color: white;
    transform: scale(1.05);
}

.auth-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.auth-modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    width: 90%;
    max-width: 450px;
    position: relative;
    animation: slideDown 0.3s ease;
}

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

.auth-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.auth-modal-close:hover {
    color: #333;
}

.auth-modal-content h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 26px;
    font-weight: 600;
    text-align: center;
}

/* Error and Success Messages */
.error-message {
    background-color: #fee;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideIn 0.3s ease;
}

.success-message {
    background-color: #efd;
    border-left: 4px solid #27ae60;
    color: #229954;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideIn 0.3s ease;
}

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

.auth-modal-content input[type="text"],
.auth-modal-content input[type="email"],
.auth-modal-content input[type="password"] {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.auth-modal-content input:focus {
    outline: none;
    border-color: #4CAF50;
}

.auth-modal-content button#loginBtn,
.auth-modal-content button#registerBtn {
    width: 100%;
    padding: 14px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.auth-modal-content button#loginBtn:hover,
.auth-modal-content button#registerBtn:hover {
    background-color: #45a049;
}

.terms-checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 14px;
    gap: 8px;
}

.terms-checkbox-container input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.terms-checkbox-container label {
    cursor: pointer;
    color: #555;
    line-height: 1.5;
}

.terms-link {
    color: #4CAF50 !important;
    text-decoration: underline !important;
}

.terms-link:hover {
    color: #45a049 !important;
}

/* Google Login Button */
.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
}

.google-login-btn:hover {
    background-color: #f8f8f8;
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 600px) {
    .auth-modal-content {
        padding: 30px 25px;
        width: 95%;
    }
    
    .auth-modal-content h3 {
        font-size: 22px;
    }
}

/* Ensure SweetAlert2 popups appear above modals */
.swal2-container {
    z-index: 999999 !important;
}

.swal2-popup {
    z-index: 999999 !important;
}

.swal2-top-layer {
    z-index: 999999 !important;
}
