/* Modal Overlay Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: 0.3s;
}

.modal-close:hover {
    color: #f00;
    transform: rotate(90deg);
}

.auth-form h2 {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    color: #121213;
    letter-spacing: -1px;
}

.auth-form .input-group {
    margin-bottom: 20px;
    width: 100%; /* Ensure full width */
}

.auth-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #121213;
    font-size: 14px;
}

.auth-form input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    background: #fff;
}

/* Fix for the grid issue mentioned by user */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.auth-form .btn-submit {
    width: 100%;
    padding: 16px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.auth-form .btn-submit:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.switch-text {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #444;
}

.switch-text a {
    color: #000;
    font-weight: 700;
    text-decoration: none;
}

.switch-text a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .modal-content {
        padding: 30px 20px;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
