﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
#registerForm ::placeholder {
    color: #999999;
    opacity: 1;
}

.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.form-panel button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    width: 0 !important;
    margin-right: 10px !important;
    padding: 0 !important;
    margin-top: 0px !important;
    color: black;
}

.select2-container {
    width: 100% !important;
    font-size: 14px;
}

.select2-container--default .select2-selection--single {
    margin: 5px 0 !important;
    border-radius: 8px !important;
    padding:9px !important;
    border: 1px solid #ccc !important;
    height: 38px !important;
    width: 100% !important;
}

.select2-selection__rendered {
    color: #333 !important;
    font-size: 14px;
    line-height: normal !important;
    padding-left: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    width: 20px !important;
    background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'><polyline points='20,50 70,100 120,50' stroke='%23333' stroke-width='15' fill='none' stroke-linecap='round'/></svg>") no-repeat center !important;
    background-size: 12px !important;
    border: none !important;
    margin-right: 0rem !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none !important;
}
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 24px;
        color: #333;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 100%;
        right: 10px;
    }
.auth-container {
    width: 100%;
    height: 100%;
    background-image: url('https://medias.byersoft.com//ecom/vendor/011/Image/2025_06/org/org_1419140108_yemekonloginbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.containerImg {
    width: 50%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.form-panel {
    width: 400px;
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    position: absolute;
    left: 20%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    opacity: 0;
    transition: all 1s ease;
}

    .form-panel.active {
        opacity: 1;
        animation: expandHeight 1s ease forwards;
    }
input[type="checkbox"] {
    accent-color: #f1592a;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

@keyframes expandHeight {
    0% {
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    100% {
        max-height: 700px;
        opacity: 1;
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

.form-panel h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #fc662f;
}

.form-panel input {
    width: 100%;
    padding: 12px;
    margin: 5px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    height: 38px;
}
.form-panel select {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20,50 70,100 120,50' stroke='%23333' stroke-width='15' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    cursor: pointer;
}
.form-panel button {
    width: 100%;
    padding: 9px;
    margin-top: 15px;
    border: none;
    border-radius: 8px;
    background: #fc662f;
    color: white;
    font-weight: 600;
    cursor: pointer;
    height: 38px;
}


.switch-links {
    margin-top: 15px;
    text-align: center;
}

    .switch-links a {
        color: #fc662f;
        cursor: pointer;
        margin: 0 10px;
        font-size: 14px;
    }

#agreementModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 14px;
    width: 80%;
    height: 95vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 35px rgba(0,0,0,0.4);
    animation: modalOpen 0.3s ease-out;
    z-index: 10001;
}

    .modal-content embed {
        flex: 1;
        border: none;
    }

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #f1592a;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .modal-close:hover {
        background: #d94f20;
    }

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .select2-container--default .select2-selection--single {
        height: 30px !important;
    }
    .form-panel button {
        padding: 5px;
        height: 30px;
    }
    .form-panel select {
        padding: 5px 8px;
        height: 30px;
    }
    .form-panel input {
        height: 30px;
        padding: 8px;
    }
    .modal-content {
        width: 95%;
        height: 90vh;
        border-radius: 10px;
    }
    .auth-container {
        background-position: 79% center;
    }

    .form-panel {
        width: 350px;
        background: rgba(255,255,255,0.95);
        border-radius: 16px;
        max-height: 0;
        overflow: hidden;
        padding: 0 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: all 0.3s ease;
    }
        .form-panel h2 {
            margin-bottom: 10px;
        }

    #registerForm, #loginForm, #forgotForm, #resetPasswordForm {
        top: 50% !important;
        display: block;
        transform: translateY(-50%) translateX(-50%);
    }

    @keyframes expandHeight {
        0% {
            max-height: 0;
            opacity: 0;
            padding-top: 0;
            padding-bottom: 0;
        }
        100% {
            max-height: 655px;
            opacity: 1;
            padding-top: 20px;
            padding-bottom: 20px;
        }
    }

}