/* ==========================================================
   GLOBAL
========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Cairo", sans-serif;
}

body {
    margin: 30px !important;
    background: #ffffff;
    direction: rtl;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100vh;
}


/* Container */
.login-container,
.signup-container {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

/* ==========================================================
   RIGHT SIDE (FORM)
========================================================== */

.login-right,
.signup-right {
    width: 50%;
    padding: 0px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo img,
.signup-logo img {
    width: 80px;
    margin-bottom: 15px;
}

.login-title,
.signup-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-subtitle,
.signup-subtitle {
    color: #777;
    margin-bottom: 30px;
}

/* ==========================================================
   GOOGLE BUTTON
========================================================== */

.google-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    margin-bottom: 20px;
}

.google-btn img {
    width: 20px;
}

/* ==========================================================
   DIVIDER
========================================================== */

.divider {
    position: relative;
    text-align: center;
    color: #999;
    font-size: 14px;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 80px;
    height: 10px;
    transform: translateY(-50%);
    background-image: url('/assets/images/icons/line.png');
    background-repeat: no-repeat;
    background-size: contain;
}

.divider::before {
    right: 60%;
    margin-right: 10px;
}

.divider::after {
    left: 60%;
    margin-left: 10px;
}

/* ==========================================================
   INPUTS
========================================================== */

.input-wrapper {
    position: relative;
    margin-bottom: 22px;
}

.input-wrapper input {
    width: 100%;
    height: 52px;
    padding: 0 55px;
    border-radius: 12px;
    border: 1.6px solid #e6e6e6;
    background: #ffffff;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.input-wrapper input:invalid:focus {
    border-color: #ff3b30;
}

/* Icons */
.input-wrapper::before {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-48%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f3f3 url('/assets/images/icons/email.png') center / 60% no-repeat;
}

.input-wrapper.password::before {
    background-image: url('/assets/images/icons/password.png');
}

/* Email valid check */
.input-wrapper.email.valid::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-48%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e8ffee url('/assets/images/icons/checkgreen.png') center / 70% no-repeat;
}

/* ==========================================================
   FLOATING LABEL
========================================================== */

.input-wrapper .float-label {
    position: absolute;
    right: 55px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
    font-size: 15px;
    transition: 0.25s ease;
}

.input-wrapper input:focus + .float-label,
.input-wrapper input:not(:placeholder-shown) + .float-label {
    top: -8px;
    right: 4px;
    background: #ffffff;
    padding: 0 6px;
    font-size: 12px;
    color: #1c8aff;
}

/* ==========================================================
   PASSWORD TOGGLE
========================================================== */

.toggle-password {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-48%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: #f3f3f3 url('/assets/images/icons/showpass.png') center / 60% no-repeat;
}

.toggle-password.active {
    background-image: url('/assets/images/icons/hidepass.png');
}

/* ==========================================================
   SUBMIT
========================================================== */

.submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    background: #1c8aff;
    color: #fff;
    font-size: 17px;
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
}

.submit-btn:hover {
    background: #007bff;
}

/* ==========================================================
   SIGNUP ROW
========================================================== */

.signup-row {
    text-align: center;
    margin-bottom: 20px;
    font-size: 15px;
}

.signup-row a {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
}

/* ==========================================================
   POLICY
========================================================== */

.policy-text {
    text-align: center;
    font-size: 13px;
    color: #777;
    line-height: 1.6;
}

/* ==========================================================
   LEFT SIDE SLIDER
========================================================== */

.login-left,
.signup-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.login-left-box,
.signup-left-box {
    width: 100%;
    display: flex;
    justify-content: center;
}

.slider-image {
    display: none;
    width: 100%;
}

.slider-image.active {
    display: block;
}

/* Arrows */
.login-left::before,
.signup-left::before,
.login-left::after,
.signup-left::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45px;
    height: 45px;
    background: #1c8aff;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 55%;
}

.login-left::before,
.signup-left::before {
    right: -25px;
    background-image: url('/assets/images/icons/right.png');
}

.login-left::after,
.signup-left::after {
    left: -25px;
    background-image: url('/assets/images/icons/left.png');
}

/* Dots */
.login-slider-controls,
.signup-slider-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-self: center;

}

.dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    width: 26px;
    border-radius: 10px;
    background: #1c8aff;
}

.remember-row {
    margin: 10px;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 992px) {
    .login-container,
    .signup-container {
        flex-direction: column-reverse;
    }

    .login-right,
    .signup-right,
    .login-left,
    .signup-left {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .login-right,
    .signup-right {
        padding: 0px 25px;
    }

    .login-title,
    .signup-title {
        font-size: 22px;
    }
}
