﻿:root {
    --mainColorLogin: #7875B5;
    --real-vh: 100vh; /* مقدار پیش‌فرض برای مرورگرهایی که جاوااسکریپت فعال نیست */
    --errorColor: #b2001a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Raleway, sans-serif;
}

body {
    background: linear-gradient(90deg,var(--mainColorLogin-w50),var(--mainColorLogin-b0));
}

.backImageLogin {
    width: 450px;
    position: absolute;
    bottom: 50%;
    left: 40%;
    fill: var(--mainColorLogin-b10);
    transform: translate(-500px, 370px);
}

#freepik--Shelving--inject-285 {
    fill: var(--mainColorLogin-b10);
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.screen {
    background: linear-gradient(270deg,var(--mainColorLogin-w10), var(--mainColorLogin-b30));
    position: relative;
    height: 600px;
    width: 360px;
    box-shadow: 0px 0px 24px var(--mainColorLogin-b30);
}

.screen__content {
    z-index: 1;
    position: relative;
    height: 100%;
    direction: ltr;
}

.screen__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
    overflow: hidden;
}

.screen__background__shape {
    transform: rotate(45deg);
    position: absolute;
}

.screen__background__shape1 {
    height: 520px;
    width: 520px;
    background: #FFF;
    top: -50px;
    right: 120px;
    border-radius: 0 72px 0 0;
}

.screen__background__shape2 {
    height: 220px;
    width: 220px;
    background: var(--mainColorLogin);
    top: -172px;
    right: 0;
    border-radius: 32px;
}

.screen__background__shape3 {
    height: 540px;
    width: 190px;
    background: linear-gradient(270deg,var(--mainColorLogin-b10),var(--mainColorLogin-b20));
    top: -24px;
    right: 0;
    border-radius: 32px;
}

.screen__background__shape4 {
    height: 400px;
    width: 200px;
    background: var(--mainColorLogin-w15);
    top: 420px;
    right: 50px;
    border-radius: 60px;
}

.login {
    width: 320px;
    padding: 30px;
    padding-top: 120px;
}

.login__field {
    padding: 0px 0px;
    position: relative;
    width: 85%;
    height: 70px;
}

.login__icon {
    position: absolute;
    top: 15px;
    color: var(--mainColorLogin-w20);
}

.login__input {
    border: none;
    border-bottom: 2px solid var(--mainColorLogin-w90);
    background: none;
    padding: 10px;
    padding-left: 24px;
    font-weight: 700;
    width: 100%;
    transition: .2s;
    font-size: small;
}

    .login__input:active,
    .login__input:focus,
    .login__input:hover {
        outline: none;
        border-bottom-color: var(--mainColorLogin-w50);
    }

    .login__input.password {
        padding-right: 30px;
    }

.login__submit {
    background: var(--mainColorLogin-w50);
    font-size: 16px;
    margin-top: 30px;
    padding: 16px 25px;
    border-radius: 26px;
    border: 1px solid var(--mainColorLogin-w15);
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    width: 100%;
    color: var(--mainColorLogin-b50);
    box-shadow: 0px 2px 2px var(--mainColorLogin-b0);
    cursor: pointer;
    transition: .2s;
    font-family: 'iranyekan';
    transition: 0.7s all;
}

.button__text {
    width: 100%;
}

.login__submit:active,
.login__submit:focus,
.login__submit:hover {
    border-color: var(--mainColorLogin-b0);
    /*outline: none;*/
    transform: scale( 1.03);
}

.button__icon {
    font-size: 24px;
    margin-left: auto;
    color: var(--mainColorLogin-b50);
}

.social-login {
    position: absolute;
    text-align: right;
    color: #fff;
    font-family: 'iranyekan';
    font-weight: 500;
    padding: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-login__icon {
    padding: 20px 10px;
    color: #fff;
    text-decoration: none;
    text-shadow: 0px 0px 8px #7875B5;
}

    .social-login__icon:hover {
        transform: scale(1.5);
    }

.toggle-password {
    background: transparent;
    border: unset;
    padding: unset;
    margin: unset;
    position: absolute;
    right: 7px;
    top: 15px;
    cursor: pointer;
}

label.error {
    font-family: 'iranyekan';
    font-size: 12px;
    font-weight: 600;
    /*    color: color-mix(in srgb, var(--mainColorLogin), #fff 20%);*/
    /*    color: var(--mainColorLogin-w20);*/
    color: var(--errorColor);
}

.remember-me-label {
    font-family: 'iranyekan';
    font-weight: 400;
    font-size: smaller;
}

.captchaSection {
    position: absolute;
    right: 0;
    top: 0px;
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: center;
    background: var(--mainColorLogin-w20);
}

    .captchaSection svg {
        color: #fff;
    }

button.btn.btn-refresh-captcha:hover svg {
    animation-name: rotate;
    animation-duration: 1s;
    cursor: pointer;
    opacity: .8;
}

.remember-me {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 2px solid #D1D1D4;
    padding: 8px;
    border-radius: 6px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.2s ease;
    margin-left: 6px;
}

    .remember-me:checked {
        background-color: var(--mainColorLogin-w20);
        border-color: var(--mainColorLogin-w20);
    }

        .remember-me:checked::after {
            content: '✔';
            color: white;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 12px;
            font-weight: bold;
        }

    .remember-me:focus {
        outline: none;
        box-shadow: 0 0 2px #6A679E;
    }

.imageLogoLogin {
    width: 70px;
    max-height: 100%;
}

.clinicNameLogin {
    width: 300px;
    background: rgb(255 255 255 / 38%);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    color: var(--mainColorLogin-b50);
    text-align: center;
    z-index: 999;
    font-weight: 600;
    font-family: 'iranyekan';
    padding: 15px;
}

@media (max-width: 1300px) {
    .backImageLogin {
        width: 390px;
        transform: translate(-450px, 370px);
    }
}

@media (max-width: 992px) {
    .backImageLogin {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        height: var(--real-vh, 100vh); /* استفاده از متغیر با fallback به vh معمولی */
        max-height: var(--real-vh, 100vh);
        /*        overflow: hidden;*/
    }

    .login__input {
        font-size: 17px
    }

    .captchaSection {
        top: 6px
    }

    label.error {
        font-size: 9px;
    }

    @media (max-width: 576px) {
        .screen {
            height: 95dvh;
            margin-top: 5px;
        }

        .container {
            align-items: unset;
        }
    }
