/* Login Modal Styles */
.login-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(42, 52, 91, 0.3);
    padding: 40px;
    width: 90%;
    max-width: 420px;
    animation: modalFadeIn 0.3s ease-out;
}

.login-modal.active {
    display: block;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #2a345b;
    margin: 0 !important;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #2a345b;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 0;
}

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

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2a345b;
    margin: 0 !important;
}

.form-group input {
    padding: 14px 16px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    color: #434343 !important;
    transition: all 0.3s ease;
    font-family: "Google Sans Flex", sans-serif !important;
}

.form-group input:focus {
    outline: none !important;
    border-color: #2a345b !important;
    box-shadow: 0 0 0 3px rgba(42, 52, 91, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.modal-footer {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-button {
    clip-path: polygon(50% calc(100% - .5px), calc(50% - 5.439px) calc(100% - .5343px), 10.4261px calc(100% - 1.0631px), 7.1389px calc(100% - 1.8559px), 4.6524px calc(100% - 3.2313px), 3.2313px calc(100% - 4.6713px), 2.1531px calc(100% - 6.4731px), 1.3875px calc(100% - 8.6625px), .9429px calc(100% - 11.3889px), .6608px calc(100% - 15.2648px), .5px calc(100% - 24px), .5px 50%, .5729px calc(50% - 6.831px), .6608px 15.2264px, 1.3875px 8.6625px, 2.4608px 5.8397px, 3.9px 3.9px, 4.6524px 3.1656px, 7.5336px 1.6232px, 10.4288px .9631px, 14.0824px .6264px, 24px .4px, calc(100% - 14.0824px) .6264px, calc(100% - 7.1389px) 1.7559px, calc(100% - 5.8397px) 2.3797px, calc(100% - 3.9px) 3.8px, calc(100% - 3.2313px) 4.5713px, calc(100% - 1.3875px) 8.5625px, calc(100% - .7625px) 13.4125px, calc(100% - .6608px) 15.1648px, calc(100% - .5027px) 21.398px, calc(100% - .5px) calc(50% - .1px), calc(100% - .5729px) calc(50% + 6.7337px), calc(100% - .8443px) calc(100% - 12.4994px), calc(100% - 1.3875px) calc(100% - 8.7625px), calc(100% - 2.4797px) calc(100% - 5.9397px), calc(100% - 3.9px) calc(100% - 4px), calc(100% - 5.5344px) calc(100% - 2.7544px), calc(100% - 8.7px) calc(100% - 1.4875px), calc(100% - 14.0824px) calc(100% - .8264px), calc(100% - 22.356px) calc(100% - .5016px), calc(100% - 24px) calc(100% - .5px));
    padding: 16px 30px !important;
    border: 2px solid #2a345b !important;
    background-color: #2a345b;
    color: #ffffff;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.35s ease;
    font-family: "Google Sans Flex", sans-serif !important;
    width: 100%;
}

.login-button:hover {
    background-color: #2d355c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 52, 91, 0.3);
}

.forgot-password {
    text-align: center;
    margin-top: 4px;
}

.forgot-password a {
    color: #2a345b;
    font-size: 14px !important;
    text-decoration: none;
    font-weight: 500 !important;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    color: #2d355c;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .login-modal {
        padding: 30px 24px;
        width: 95%;
    }

    .modal-header h2 {
        font-size: 24px !important;
    }
}
