/* Import Font */
@import url("https://fonts.googleapis.com/css2?family=Almarai:wght@400;700&display=swap");

/* Global Reset and Defaults */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Almarai", sans-serif;
}

body {
    margin: 0;
    display: flex;
    min-height: 100vh;
}

.container {
    display: flex;
    flex: 1;
    flex-direction: column;
}

/* Keyframes */
@keyframes bg-move {
    0%, 100% {
        background-position: 0 100%;
    }
    50% {
        background-position: 100% 0;
    }
}

/* Animation Section */
.animation {
    flex: 4;
    background-image: linear-gradient(
        to right top,
        #ffd8d8,
        #ffecd8,
        #dcdfff,
        #d6fff2
    );
    background-size: 200vw 200vh;
    background-position: top left;
    animation: bg-move 20s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animation #globe {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 70dvh;
    padding: 20px 0;
}

.animation #globe canvas {
    width: 100%;
    height: 100%;
    min-height: 280px;
}

@media screen and (max-width: 768px) {
    .animation #globe {
        height: 550px;
    }
}

/* Shared styles for all image-side variations */
.image-side {
    flex: 2;
    height: 100vh;
    min-height: 600px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.image-side {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}
.logo-login{
    display: inline-flex;
    width: 100px;
    margin: 3px;
}
/* Background variations using data attributes */
.image-side[data-bg="1"] {
    background-image: url("../imgs/1.jpg");
}
.image-side[data-bg="2"] {
    background-image: url("../imgs/2.jpg");
}
.image-side[data-bg="3"] {
    background-image: url("../imgs/3.jpg");
}
.image-side[data-bg="4"] {
    background-image: url("../imgs/4.jpg");
}
.image-side[data-bg="5"] {
    background-image: url("../imgs/5.jpg");
}
.image-side[data-bg="6"] {
    background-image: url("../imgs/6.jpg");
}

[dir="ltr"] .image-side {
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
    transform: scaleX(-1);
}

[dir="rtl"] .image-side {
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
}

[dir="rtl"] .margin {
    margin-right: 3px;
}

[dir="ltr"] .margin {
    margin-left: 3px;
}

[dir="ltr"] .selectLanguage {
    padding: 4px 12px 4px 8px;
    right: unset;
    left: 32px;
}

.selectLanguage {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 4px 12px;
    border-radius: 1900px;
    border: 1px solid #e3e3e3;
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 2;
    background: white;
}

.selectLanguage .icon {
    padding: 3px 10px;
}

.selectLanguage .icon svg {
    width: 24px;
    height: 24px;
}

.selectLanguage select {
    padding: 8px;
    width: fit-content;
    border: none;
    outline: none !important;
    background-color: transparent;

}


@media (min-width: 768px) {
    .image-side {
        height: 100vh;
    }
}

@media (max-width: 768px) {
    .image-side {
        display: none;
    }
}

/* Form Side Section */
.form-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.form-wrap {
    width: 80%;
    max-width: 700px;
    margin: auto;
    text-align: center;
    background: #fff;
    padding: 15px;
}

@media (min-width: 576px) {
    .form-wrap {
        padding: 32px;
    }
}

.form-wrap img.logo {
    max-height: 150px;
    max-width: 300px;
    margin: 0 auto 20px;
}

.form-wrap h1 {
    font-weight: 600;
    font-size: 28px;
    color: #000;
    margin-bottom: 10px;
}

.input-field {
    text-align: start;
}

.check-field {
    text-align: start;
}

@media (max-width: 768px) {
    .form-wrap h1 {
        font-size: 22px;
    }
}

.form-wrap p {
    font-size: 16px;
    color: #a5a5a5;
    margin-top: 10px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-field label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

.input-field input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    background: none;
}

@media (max-width: 576px) {
    .input-field input {
        font-size: 12px;
        padding: 8px;
    }
}

/* Check Section */
.check {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.check div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.check a {
    color: #4931a8;
    text-decoration: none;
}

.check input {
    width: 16px;
    height: 16px;
    appearance: none;
    position: relative;
}

.check input::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 1px solid #bababa;
    border-radius: 4px;
    position: absolute;
    cursor: pointer;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Font Awesome 6 pro";
    display: flex;
    align-items: center;
    font-size: 12px;
    justify-content: center;
}

.check input:checked::after {
    content: "\f00c";
    background: #4931a8;
    color: #fff;
    border: none;
}

/* Button Styling */
form button {
    margin-top: 32px;
    width: 100%;
    height: 50px;
    border-radius: 6px;
    border: none;
    outline: none;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    background: #9DC106;
    font-weight: 400;
}

/* Footer */
.footer {
    width: 100%;
    padding: 16px 24px;
    margin-top: auto;
    text-align: center;
    font-size: 14px;
    color: #9DC106;
    margin-top: 30px;
}

.footer a {
    color: #444444;
    font-weight: bold;
    text-decoration: none;
}

/* Responsive Layouts */
@media (min-width: 768px) {
    .container {
        flex-direction: row;
    }
}

@media (max-width: 992px) {
    .animation {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .form-wrap {
        z-index: 999;
        background-color: #f3f3f960;
        backdrop-filter: blur(6px);
        border-radius: 24px;
        border: 3px solid #ffffff38;
    }
}
