
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: none;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, #ABC 0%,#BCE 100%);
    margin: 8% auto;
    padding: 25px 25px;
    border: none;
    width: 80%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.modal-content p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    color: #666;
}

.modal-content .close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 0;
    z-index: 2001;
}

.modal-content .close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Divider styles */
.modal-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.modal-divider span {
    padding: 0 10px;
    color: #666;
    font-size: 14px;
}

.google-btn {
    display: flex;
    align-items: center;
    background-color: #fff;
    color: #424242;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.google-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.google-btn:active {
    transform: translateY(0);
}

.facebook-btn {
    display: flex;
    align-items: center;
    background-color: #fff;
    color: #424242;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.facebook-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.facebook-btn:active {
    transform: translateY(0);
}

.email-btn {
    display: flex;
    align-items: center;
    background-color: #fff;
    color: #424242;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.email-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.email-btn:active {
    transform: translateY(0);
}
.modal-content .login-popup-icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
}
.modal-content .login-popup-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-popup-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.modal-content .phone-input {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.modal-content .country-select {
    width: 120px;
    padding: 14px;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
    background-color: #fff;
    font-size: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.modal-content .country-select:hover {
    border-color: #d1d5db !important;
}

.modal-content .country-select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-content .phone-number {
    flex: 1;
    padding: 14px;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: white;
}

.modal-content .phone-number:focus,

.modal-content .code-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-content .code-input {
    width: calc(100% - 30px);
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    letter-spacing: 2px;
    background: white;
}

.modal-content .send-code-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.modal-content .send-code-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

.modal-content .send-code-btn:active {
    transform: translateY(0);
}

.modal-content .disabled {
    background: linear-gradient(135deg, #94a3b8, #cbd5e1);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.modal-content .login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    margin-left: 5px;
}

.modal-content.login-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

.modal-content .login-btn.disabled {
    background: linear-gradient(135deg, #4d617e, #4b5c71);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.modal-content input::placeholder {
    color: #94a3b8;
    opacity: 0.8;
}

.modal-content .message-label {
    display: none;
    margin-bottom: 10px;
    text-align: center;
}


.modal-content .email-input {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.modal-content .email-input input {
    flex: 1;
    padding: 14px;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: white;
}

.modal-content .email-input input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-content .password-input {
    width: calc(100% - 30px);
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: white;
}

.modal-content .password-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-content .company-name {
    width: 100%;
    padding: 7px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    letter-spacing: 2px;
    background: white;
}

.modal-content .company-logo {
    width: 100%;
    padding: 7px;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    letter-spacing: 2px;
    background: white;
}

.modal-content .company-name:focus, .company-logo:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-content .save-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.modal-content .save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

.modal-content .save-btn:active {
    transform: translateY(0);
}

.modal-content .cancel-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    margin-left: 5px;
}

.modal-content .cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

/* Add a nice placeholder style */
.modal-content input::placeholder {
    color: #94a3b8;
    opacity: 0.8;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 480px) {
    .modal-content {
        margin: 15% auto;
        padding: 25px 20px;
    }

    .modal-content h2 {
        font-size: 24px;
    }

    .google-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .facebook-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .email-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .login-popup-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 320px) {
    .modal-content {
        padding: 20px 15px;
    }

    .modal-content h2 {
        font-size: 22px;
    }

    .google-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .facebook-btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .email-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Add these new styles */
.iti {
    width: 100%;
    display: flex;
}

.iti__flag {
    background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/img/flags@2x.png");
    }
}

/* Style the country dropdown */
.iti__country-list {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    max-height: 200px;
    max-width: 300px;
    background: #f9f9f9;
}


.iti__country {
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.iti__country:hover {
    background-color: #4d617e;
}

.iti__selected-flag {
    padding: 0 12px;
    border-radius: 12px 0 0 12px;
}

#whatsapp-image {
    transition: transform 0.3s ease;
}

#whatsapp-image:hover {
    transform: scale(1.2);
}
