@font-face {
    font-family: 'Beiruti-Black';
    src: url('/App_Themes/ThemeAr/Fonts/Beiruti-Black.ttf') format('truetype');
    font-weight: normal !important;
    font-style: normal !important;
}

@font-face {
    font-family: 'Beiruti-Bold';
    src: url('/App_Themes/ThemeAr/Fonts/Beiruti-Bold.ttf') format('truetype');
    font-weight: normal !important;
    font-style: normal !important;
}

@font-face {
    font-family: 'Beiruti-ExtraBold';
    src: url('/App_Themes/ThemeAr/Fonts/Beiruti-ExtraBold.ttf') format('truetype');
    font-weight: normal !important;
    font-style: normal !important;
}

@font-face {
    font-family: 'Beiruti-ExtraLight';
    src: url('/App_Themes/ThemeAr/Fonts/Beiruti-ExtraLight.ttf') format('truetype');
    font-weight: normal !important;
    font-style: normal !important;
}

@font-face {
    font-family: 'Beiruti-Light';
    src: url('/App_Themes/ThemeAr/Fonts/Beiruti-Light.ttf') format('truetype');
    font-weight: normal !important;
    font-style: normal !important;
}

@font-face {
    font-family: 'Beiruti-Medium';
    src: url('/App_Themes/ThemeAr/Fonts/Beiruti-Medium.ttf') format('truetype');
    font-weight: normal !important;
    font-style: normal !important;
}

@font-face {
    font-family: 'Beiruti-Regular';
    src: url('/App_Themes/ThemeAr/Fonts/Beiruti-Regular.ttf') format('truetype');
    font-weight: normal !important;
    font-style: normal !important;
}

@font-face {
    font-family: 'Beiruti-SemiBold';
    src: url('/App_Themes/ThemeAr/Fonts/Beiruti-SemiBold.ttf') format('truetype');
    font-weight: normal !important;
    font-style: normal !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Beiruti-Regular';
    text-decoration: none;
    list-style: none;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #40CAFF;
}

.container {
    position: relative;
    width: 850px;
    height: 650px;
    background: #fff;
    margin: 20px;
    border-radius: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .2);
    overflow: hidden;
}

@media(min-width:649px) and (max-width:750px){
    .container{
        width:610px;
    }
    .toggle-box::before {
        background-size: contain !important;
        background-position: center !important;
    }
}
@media(min-width:749px) and (max-width:890px) {
    .container {
        width: 700px;
    }
    .toggle-box::before {
        background-size: contain !important;
        background-position: center !important;
    }
}

.container h1 {
    font-family: 'Beiruti-Bold';
    font-size: clamp(36px, 4.6vw, 64px);
    margin: -10px 0;
}

.container p {
    font-family: 'Beiruti-Medium';
    font-size: clamp(14px, 1.6vw, 20px);
    margin: 15px 0;
}

.login-register-logo {
    width: 240px;
    height: auto;
}

.right-side-h1 {
    margin-top: 5px !important;
    font-size: clamp(24px, 3.2vw, 40px) !important;
}

form {
    width: 100%;
}

.form-box {
    position: absolute;
    right: 0;
    width: 50%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    color: #333;
    text-align: center;
    padding: 40px;
    z-index: 1;
    transition: .6s ease-in-out 1.2s, visibility 0s 1s;
}

.container.active .form-box {
    right: 50%;
}

.form-box.register {
    visibility: hidden;
}

.container.active .form-box.register {
    visibility: visible;
}
.input-box select {
    
  /* Hide default arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
    width: 100%;
    padding: 12px 20px 12px 50px;
    background: #fff;
    border: 1px solid #00ADEF;
    border-radius: 20px;
    outline: none;
    font-size: 16px;
    color: #000;
}
.input-box {
    position: relative;
    margin: 12px 0;
}

.input-box input {
    width: 100%;
    padding: 12px 20px 12px 50px;
    background: #fff;
    border: 1px solid #00ADEF;
    border-radius: 20px;
    outline: none;
    font-size: 16px;
    color: #000;
    font-weight: 500;
}

.input-box input::placeholder {
    color: #888;
    font-weight: 400;
}

/*.input-box img {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}*/
    .input-box img {
        position: absolute;
        left: 20px;
        top: 12px; /* عدّلها حسب ارتفاع الـ input */
        transform: none;
        font-size: 20px;
    }
    .input-box .toggle-password {
        height: 24px !important;
    }
.forgot-link {
    margin: 5px 0 15px;
    text-align: right;
}

.forgot-link a {
    margin-top: 15px;
    text-align: right;
    font-size: 14.5px;
    color: #00ADEF;
    font-family: 'Beiruti-Regular';
}

.btn {
    width: 100%;
    height: 48px;
    background: #00ADEF;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #fff;
    font-family: 'Beiruti-SemiBold';
}

.social-icons {
    display: flex;
    justify-content: center;
}

.social-icons a {
    display: inline-flex;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 24px;
    color: #333;
    margin: 0 8px;
}

.toggle-box {
    position: absolute;
    width: 100%;
    height: 100%;
}

.toggle-box::before {
    content: '';
    position: absolute;
    left: -250%;
    width: 300%;
    height: 100%;
    background-color: #00ADEF;
    background-image: url(/App_Themes/ThemeAr/Images/register-login-switch-sides-background.png);
    background-size: cover;
    border-radius: 150px;
    z-index: 2;
    transition: 1.8s ease-in-out;
}

.container.active .toggle-box::before {
    left: 50%;
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    /* background: seagreen; */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: .6s ease-in-out;
}

.toggle-panel.toggle-left {
    left: 0;
    transition-delay: 1.2s;
}

.container.active .toggle-panel.toggle-left {
    left: -50%;
    transition-delay: .6s;
}

.toggle-panel.toggle-right {
    right: -50%;
    transition-delay: .6s;
}

.container.active .toggle-panel.toggle-right {
    right: 0;
    transition-delay: 1.2s;
}

.toggle-panel p {
    margin-bottom: 20px;
}

.toggle-panel .btn {
    width: 160px;
    height: 46px;
    background: transparent;
    border: 2px solid #fff;
    box-shadow: none;
    font-family: 'Beiruti-SemiBold';
    font-size: clamp(16px, 2vw, 24px);
    border-radius: 20px;
}

@media screen and (max-width: 650px) {
    .form-box .login-register-logo, .form-box .right-side-h1 {
        position: relative;
        top: -70px;
    }
    .container {
        position: relative;
        width: 370px;
    }
        .form-box {
        overflow-y: auto;   /* enables vertical scroll */
        -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    }   
    .container {
        height: calc(100vh - 40px);
    }
    .login-register-logo {
    width:140px;
    height: auto;
    }
.input-box {
    position: relative;
    margin:  0 0 12px 0;
}
.toggle-box::before {
    content: '';
    position: absolute;
    left: -250%;
    width: 300%;
    height: 100%;
    background-color: #00ADEF;
    background-image:none;
    background-size: fill;
    background-repeat: no-repeat;
    border-radius: 150px;
    z-index: 2;
    transition: 1.8s ease-in-out;
}
    .form-box {
        bottom: 0;
        width: 100%;
        height: 70%;
    }

    .container.active .form-box {
        right: 0;
        bottom: 30%;
    }

    .toggle-box::before {
        left: 0;
        top: -270%;
        width: 100%;
        height: 300%;
        border-radius: 20vw;
    }

    .container.active .toggle-box::before {
        left: 0;
        top: 70%;
    }

    .container.active .toggle-panel.toggle-left {
        left: 0;
        top: -30%;
    }

    .toggle-panel {
        width: 100%;
        height: 30%;
    }

    .toggle-panel.toggle-left {
        top: 0;
    }

    .toggle-panel.toggle-right {
        right: 0;
        bottom: -30%;
    }

    .container.active .toggle-panel.toggle-right {
        bottom: 0;
    }
}

@media screen and (max-width: 400px) {
    .form-box {
        padding: 20px;
    }

    .toggle-panel h1 {
        font-size: 30px;
    }
}


.password-policy {
    position: absolute;
    top: 22px;
    left: -55px;
}