/* login */
/* login */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    position: relative;
    background: #fff;
    padding: 20px;
    text-align: center;
}

.header-image {
    height: 2em;
    margin: auto;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Menu Sections */
.menu-section {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

.menu-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Button Styles */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.auth-button:hover {
    background: #f5f5f5;
}

.auth-button img {
    width: 20px;
    height: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.phone-group {
    display: flex;
    gap: 10px;
}

.country-code {
    width: 30%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #5a67d8;
}

/* Footer Buttons */
.menu-footer {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.back-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    padding: 5px;
}

.back-btn:hover {
    color: #333;
}

.switch-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 14px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.cancel-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
}

.cancel-btn:hover {
    color: #666;
}