@import "./magicBtn2.css";

.login-page {
    width: 100%;
    height: 100vh;
    position: relative;
    background-position: center;
    background-size: cover;
}

.login-page-container {
    width: 60%;
    height: 80%;
    border-radius: 1vw;
    box-shadow: 0 0 1vw rgba(0, 0, 0, 0.4);
    background-color: #e1e1e1;
    overflow: hidden;
    position: relative;
}

.login-page-container > div {
    gap: 1vw;
}

.login-first-layer,
.login-second-layer,
.login-third-layer,
.login-fourth-layer {
    width: 50%;
    height: 100%;
    position: absolute;
    transition: all 0.5s;
}

.login-fifth-layer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: -120%;
    left: 0;
    z-index: 5;
    transition: all 0.6s;
    background-color: #e1e1e1;
    box-shadow: 0 0 1vw black;
    border-radius: 1vw;
}

.login-fifth-layer.open {
    top: 0;
}

.login-first-layer {
    right: 0;
    z-index: 1;
    opacity: 1;
}

.login-second-layer {
    left: 0;
    z-index: 2;
    opacity: 0;
}

.login-third-layer {
    left: 0;
    z-index: 3;
    background-color: var(--darker-blue);
    opacity: 0;
}

.login-fourth-layer {
    left: 0;
    z-index: 4;
    background-color: var(--darker-blue);
    opacity: 1;
}


.login-page-container.otpMechanism .login-third-layer,
.login-page-container.otpMechanism .login-fourth-layer {
    transform: translateX(100%);
}

.login-page-container.otpMechanism .login-third-layer {
    z-index: 4;
}

.login-page-container.otpMechanism .login-fourth-layer {
    z-index: 3;
}


.login-page-container.otpMechanism .login-second-layer,
.login-page-container.otpMechanism .login-third-layer {
    opacity: 1;
}

.login-page-container.otpMechanism .login-first-layer,
.login-page-container.otpMechanism .login-fourth-layer {
    opacity: 0;
}

.login-third-layer figure,
.login-fourth-layer figure {
    margin: 2vw;
    width: 37%;
    height: 30%;
    overflow: hidden;
    position: relative;
}

.login-third-layer figure a,
.login-fourth-layer figure a  {
    display: inline-block;
    width: 100%;
    height: 100%;
    position: relative;
}

.login-third-layer figure img,
.login-fourth-layer figure img {
    width: 100%;
}

.login-third-layer {
    box-shadow: -0.7vw 0 0.7vw rgba(0, 0, 0, 0.2);
}

.login-fourth-layer {
    box-shadow: 0.7vw 0 0.7vw rgba(0, 0, 0, 0.2);
}

.login-third-layer h1,
.login-fourth-layer h1 {
    font-size: 2.7vw;
    color: var(--light-font);
}
.login-third-layer h3,
.login-fourth-layer h3 {
    padding: 0 3vw;
    text-align: center;
    font-size: 0.9vw;
    font-weight: normal;
    color: var(--blue);
}

.login-first-layer form,
.login-second-layer form {
    width: 100%;
    height: 80%;
    position: relative;
    gap: 1.5vw;
}

.login-input-group {
    width: 80%;
    position: relative;
}

.login-input-group i {
    padding: 0.3vw;
    width: 2vw;
    text-align: center;
    font-size: 1.2vw;
    position: absolute;
    left: 0.65vw;
    top: 0.6vw;
    z-index: 1;
    color: #2b3341;
}

i.fa-eye,
i.fa-eye-slash {
    cursor: pointer;
}

.login-page input {
    padding: 1.4vw;
    width: 100%;
    height: 2.5vw;
    border-radius: 0.5vw;
    background-color: rgba(183, 192, 197, 0.9);
    border: none;
    border-bottom: 0.2vw solid var(--dark-blue);
    position: relative;
    color: var(--dark-font);
    font-size: 1.1vw;
    font-weight: normal!important;
    outline: none;
    caret-color: var(--blue2);
    box-shadow: 0 0 0.5vw rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    font-family: Vazir, sans-serif;
}

.login-page input::placeholder  {
    font-size: 1vw;
    color: rgba(73, 73, 73, 0.5);
    font-weight: normal;
}


.login-page input:focus {
    background-color: #cbc6bd;
    border-bottom: 0.2vw solid #F65276;
}

.login-page button[type='submit'] {
    margin: 2vw;
    width: 40%;
    height: 3.5vw;
    border-radius: 2vw;
    background-color: transparent;
    border: 0.2vw solid var(--dark-blue);
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: all 0s;
}

.login-page button[type='submit']::before {
    content: "";
    width: 100%;
    height: 100%;
    background-color: var(--blue);
    border-radius: 2vw;
    position: absolute;
    left: -100%;
    top: 0;
    z-index: -1;
    transition: all 0.3s;
}

.login-page button[type='submit']:hover {
    border: none;
}

.login-page button[type='submit']:hover::before {
    left: 0;
    transform: scale(1.1);
}

.login-page button[type='submit']:disabled {
    border: 0.2vw solid var(--dark-blue);
}

.login-page button[type='submit']:disabled:hover::before {
    left: -100%;
    transform: scale(1);
}

.login-page button.forget-pass {
    background-color: transparent;
    gap: 0.35vw;
}

.login-page button.forget-pass:hover {
    box-shadow: 0 0 1vw var(--light-font);
}

.login-page button.forget-pass:hover i {
    animation: animate-rotate-icon 1.5s linear infinite;
}

@keyframes animate-rotate-icon {
    0%{transform: rotate(0)}
    100%{transform: rotate(360deg)}
}

.login-page-error-message {
    color: #e00b0b;
    font-weight: normal;
}

.login-fifth-layer button.close {
    padding: 0.5vw;
    width: 2vw;
    height: 2vw;
    background: transparent;
    border: none;
    position: absolute;
    top: 2vw;
    left: 2vw;
    cursor: pointer;
    outline: none;
    transition: all 0.4s;
    border-radius: 0.4vw;
}

.login-fifth-layer button.close:hover {
    box-shadow: 0 0 0.8vw var(--light-font);
}

.login-fifth-layer button.close::before {
    content: "";
    width: 90%;
    height: 0.25vw;
    border-radius: 0.2vw;
    background-color: var(--dark-blue);
    position: absolute;
    transition: all 0.4s;
    transition-delay: 0.6s;
}

.login-fifth-layer button.close::after {
    content: "";
    width: 90%;
    height: 0.25vw;
    border-radius: 0.2vw;
    background-color: var(--dark-blue);
    position: absolute;
    transition: all 0.4s;
    transition-delay: 0.6s;
}

.login-fifth-layer.open button.close::before {
    transform: rotate(135deg);
}

.login-fifth-layer.open button.close::after {
    transform: rotate(-135deg);
}

.login-fifth-layer form {
    width: 40%;
    gap: 1vw;
}

form.login-otp {
    padding: 2vw 0;
    overflow: hidden;
    height: 10vw;
    justify-content: start!important;
}

form.login-otp.open {
    padding-top: 4vw;
    height: 90%;
    transition: all 0.35s;
}

form.login-otp .login-input-group {
    position: relative;
    transform: translateY(-1.5vw);
}

form.login-otp label#confirm-rules-label {
    margin-right: 0.5vw;
    position: absolute;
    bottom: -1.75vw;
    cursor: pointer;
    font-size: 0.8vw;
    gap: 0.2vw;
}

form.login-otp label#confirm-rules-label input[type='checkbox'] {
    margin-left: 0.2vw;
    width: 1vw!important;
    height: 1vw!important;
    cursor: pointer;
}

form.login-otp.open label#confirm-rules-label {
    pointer-events: none!important;
}

form.login-otp label#confirm-rules-label a {
    color: var(--dark-blue);
    font-size: 0.8vw;
    transition: all 0.1s;
}

form.login-otp label#confirm-rules-label a:hover {
    filter: brightness(1.4);
}

button.send-code {
    background-color: var(--dark-blue);
    color: var(--blue);
    font-weight: bold;
}

button.send-code:hover {
    background-color: #2c3e59;
    color: var(--light-font);
}

button.send-code:disabled{
    background-color: var(--dark-blue);
    color: var(--blue);
    opacity: 0.6;
}

.numbers-input-group {
    margin-top: 2vw;
    width: 90%;
    gap: 2vw;
    direction: ltr;
}

.numbers-input-group input {
    text-align: center;
    width: 5vw;
}

.waiting-msg {
    width: 50%;
    text-align: center;
    font-weight: normal;
    font-size: 0.8vw;
    direction: ltr;
}

.waiting-msg div {
    direction: ltr;
}

@media screen and ( max-width: 992px) {

    .login-page-container {
        width: 90%;
        height: 60%;
        border-radius: 14px;
        box-shadow: 0 0 14px rgba(0, 0, 0, 0.4);
    }

    .login-page-container > div {
        gap: 14px;
    }

    .login-third-layer figure,
    .login-fourth-layer figure {
        margin: 3vw;
        width: 61%;
        height: 40%;
    }

    .login-third-layer {
        box-shadow: -6px 0 6px rgba(0, 0, 0, 0.2);
    }

    .login-fourth-layer {
        box-shadow: 6px 0 6px rgba(0, 0, 0, 0.2);
    }

    .login-third-layer h1,
    .login-fourth-layer h1 {
        font-size: 4.7vw;
    }
    .login-third-layer h3,
    .login-fourth-layer h3 {
        padding: 0 20px;
        font-size: 1.9vw;
    }

    .login-fifth-layer {
        box-shadow: 0 0 14px black;
        border-radius: 14px;
    }

    .login-first-layer form {
        gap: 24px;
    }

    .login-input-group i {
        padding: 5px;
        width: 30px;
        font-size: 16px;

        left: 7px;
        top: 4px;
        z-index: 1;
        color: #2b3341;
    }

    .login-page input {
        padding: 16px;
        /*height: 35px;*/
        border-radius: 7px;
        border-bottom: 3px solid var(--dark-blue);
        font-size: 16px;
        box-shadow: 0 0 7px rgba(0, 0, 0, 0.15);
    }

    .login-page input::placeholder  {
        font-size: 15px;
    }


    .login-page input:focus {
        background-color: #cbc6bd;
        border-bottom: 3px solid var(--light-font);
    }

    .login-page button[type='submit'] {
        margin: 30px;
        width: 200px;
        height: 45px;
        border-radius: 30px;
        border: 3px solid var(--dark-blue);
        font-size: 16px;
    }

    .login-page button[type='submit']::before {
        border-radius: 30px;
    }

    .login-page button.forget-pass {
        gap: 5px;
        font-size: 15px;
    }

    .login-page button.forget-pass:hover {
        box-shadow: 0 0 14px var(--light-font);
    }

    .login-page-error-message {
        font-size: 14px;
    }

    .login-fifth-layer button.close {
        padding: 7px;
        width: 30px;
        height: 30px;
        top: 30px;
        left: 30px;
        border-radius: 6px;
    }

    .login-fifth-layer button.close:hover {
        box-shadow: 0 0 10px var(--light-font);
    }

    .login-fifth-layer button.close::before {
        width: 90%;
        height: 3px;
        border-radius: 3px;
    }

    .login-fifth-layer button.close::after {
        width: 90%;
        height: 3px;
        border-radius: 3px;
    }

    .login-fifth-layer form {
        width: 40%;
        gap: 14px;
    }

}

@media screen and ( max-width: 450px) {

    .login-page {
        height: 900px;
    }

    .login-page-container {
        flex-direction: column!important;
        justify-content: start!important;
        width: 90%;
        height: 850px;
        border-radius: 14px;
        box-shadow: 0 0 14px rgba(0, 0, 0, 0.4);
    }

    .login-page-container > div {
        gap: 14px;
    }

    .login-first-layer,
    .login-second-layer,
    .login-third-layer,
    .login-fourth-layer {
        width: 100%;
        height: 65%;
        position: absolute;
        transition: all 0.5s;
    }

    .login-first-layer {
        bottom: 0;
        right: 0;
        z-index: 2;
        opacity: 1;
        background-color: #e1e1e1;
    }

    .login-second-layer {
        bottom: 0;
        left: 0;
        z-index: 1;
        opacity: 0;
        background-color: #e1e1e1;
    }

    .login-third-layer {
        padding: 14px;
        height: 35%;
        top: 0;
        left: 0;
        z-index: 3;
        background-color: var(--darker-blue);
        opacity: 0;
        /*justify-content: space-around!important;*/
    }

    .login-fourth-layer {
        padding: 14px;
        height: 35%;
        top: 0;
        left: 0;
        z-index: 4;
        background-color: var(--darker-blue);
        opacity: 1;
        /*overflow: visible;*/
        /*justify-content: space-around!important;*/
    }

    .login-page-container.otpMechanism .login-third-layer,
    .login-page-container.otpMechanism .login-fourth-layer {
        transform: translateX(0);
    }

    .login-page-container.otpMechanism .login-firs-layer {
        z-index: 1;
    }

    .login-page-container.otpMechanism .login-second-layer {
        z-index: 2;
    }

    .login-page-container.otpMechanism .login-third-layer {
        z-index: 4;
    }

    .login-page-container.otpMechanism .login-fourth-layer {
        z-index: 3;
    }

    .login-page-container.otpMechanism .login-second-layer,
    .login-page-container.otpMechanism .login-third-layer {
        opacity: 1;
    }

    .login-page-container.otpMechanism .login-first-layer,
    .login-page-container.otpMechanism .login-fourth-layer {
        opacity: 0;
    }

    .login-third-layer figure,
    .login-fourth-layer figure {
        margin: 20px;
        width: 41%;
        height: 55%;
        overflow: hidden;
        position: relative;
    }

    .login-third-layer figure img,
    .login-fourth-layer figure img {
        width: 100%;
    }

    .login-third-layer {
        box-shadow: -0.7vw 0 0.7vw rgba(0, 0, 0, 0.2);
    }

    .login-fourth-layer {
        box-shadow: 0.7vw 0 0.7vw rgba(0, 0, 0, 0.2);
    }

    .login-third-layer h1,
    .login-fourth-layer h1 {
        display: none;
    }
    .login-third-layer h3,
    .login-fourth-layer h3 {
        display: none;
    }

    .login-first-layer,
    .login-second-layer {
        font-size: 5vw;
    }

    .login-first-layer form {
        width: 100%;
        gap: 30px;
    }

    .login-input-group {
        width: 90%;
    }

    .login-input-group i {
        padding: 5px;
        width: 32px;
        font-size: 18px;
        left: 8px;
        top: 6px;
        z-index: 1;
        color: #2b3341;
    }

    .login-page input {
        padding: 20px;
        width: 100%;
        /*height: 2.5vw;*/
        border-radius: 7px;
        border-bottom: 3px solid var(--dark-blue);
        color: var(--dark-blue);
        font-size: 18px;
        box-shadow: 0 0 7px rgba(0, 0, 0, 0.15);
    }

    .login-page input::placeholder  {
        font-size: 17px;
    }


    .login-page input:focus {
        border-bottom: 3px solid var(--light-font);
    }

    .login-page button[type='submit'] {
        margin: 30px;
        width: 200px;
        height: 45px;
        border-radius: 30px;
        border: 3px solid var(--dark-blue);
        font-size: 19px;
    }

    .login-page button[type='submit']::before {
        border-radius: 30px;
    }

    .login-page button.forget-pass {
        font-size: 16px;
        gap: 5px;
    }

    .login-page button.forget-pass:hover {
        box-shadow: 0 0 14px var(--light-font);
    }

    .login-page-error-message {
        font-size: 14px;
    }

    .login-fifth-layer form {
        width: 80vw!important;
    }

    .login-fifth-layer button.close {
        padding: 7px;
        width: 35px;
        height: 35px;
        top: 30px;
        left: 30px;
    }

    .login-fifth-layer button.close:hover {
        box-shadow: 0 0 11px var(--light-font);
    }

    .login-fifth-layer button.close::before {
        height: 4px;
        border-radius: 3px;
    }

    .login-fifth-layer button.close::after {
        height: 4px;
        border-radius: 4px;
    }

    form.login-otp {
        padding: 2vw 0;
        overflow: hidden;
        height: 160px;
        gap: 5vw;
        justify-content: start!important;
    }

    form.login-otp.open {
        margin-top: 60px;
        height: 90%;
    }

    form.login-otp .login-input-group {
        position: relative;
        transform: translateY(-1.5vw);
    }

    form.login-otp label#confirm-rules-label {
        margin-right: 1.75vw;
        position: absolute;
        bottom: -6.75vw;
        font-size: 3.25vw;
        gap: 0.6vw;
    }

    form.login-otp label#confirm-rules-label input[type='checkbox'] {
        margin-left: 0.75vw;
        width: 3.6vw!important;
        height: 3.6vw!important;
    }

    form.login-otp label#confirm-rules-label a {
        font-size: 3vw;
    }

    button.send-code {
        margin-top: 8.5vw;
        padding: 9px;
        font-size: 18px;
        border-radius: 9px;
    }

    .numbers-input-group {
        margin-top: 4vw;
        width: 90%;
        gap: 10px;
    }

    .numbers-input-group input {
        width: 60px;
    }

    .waiting-msg {
        font-size: 14px;
        width: 70%;
    }

    .waiting-msg div {
        direction: ltr;
    }
}