﻿@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");

*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #035E92;
    --primary-color-dark: #0e4b6e;
}

body, input {
    font-family: "Poppins", sans-serif;
}


.logo img.w-15 {
    width: 20% !important;
}

.reveal-password {
    margin-top: -23px;
    float: right;
    right: 15px !important;
    z-index: 999;
    cursor: pointer;
}

.text-small {
    font-size: 12px !important;
}

main {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-color: #edf8ff;
    background-image: url("../img/login-bg-1.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position-y: 50%;
    background-position-x: 50%;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}



.box {
    position: relative;
    width: 100%;
    max-width: 1020px;
    height: 640px;
    background-color: #fff;
    border-radius: 3.3rem;
    box-shadow: 0 60px 40px -30px rgba(0, 0, 0, 0.27);
}



.inner-box {
    position: absolute;
    width: calc(100% - 4.1rem);
    height: calc(100% - 4.1rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.forms-wrap {
    position: absolute;
    height: 100%;
    width: 45%;
    top: 0;
    left: 55%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    transition: 0.8s ease-in-out;
}

form {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    transition: opacity 0.02s 0.4s;
}

#user-session-form {
    max-width: 100%;
}

form.sign-up-form {
    opacity: 0;
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        width: 75%;
        margin-right: 0.3rem;
    }

    .logo h4 {
        font-size: 1.1rem;
        margin-top: -9px;
        letter-spacing: -0.5px;
        color: #151111;
    }

.heading h2 {
    font-size: 2.1rem;
    font-weight: 600;
    color: #151111;
}

.heading h6 {
    color: #bababa;
    font-weight: 400;
    font-size: 0.75rem;
    display: inline;
}

.toggle {
    color: #151111;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: 0.3s;
}

    .toggle:hover {
        color: #035E92;
    }

.input-wrap {
    position: relative;
    height: 37px;
    margin-bottom: 2rem;
}

.input-field {
    position: absolute;
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    outline: none;
    border-bottom: 1px solid #7a7a7a;
    padding: 0;
    font-size: 0.95rem;
    color: #151111;
    transition: 0.4s;
}

input:valid label {
    color: red;
}

label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: #7a7a7a;
    pointer-events: none;
    transition: 0.4s;
}

    label.role {
        position: relative !important;
        transform: translate(0);
    }

.input-field.active {
    border-bottom-color: #151111;
}

    .input-field.active + label, input:-webkit-autofill + label {
        font-size: 0.75rem;
        top: -2px;
    }

button.login-btn {
    --width: 100%;
    --height: 50px;
    --bg: #E0EEF5;
    border: 0;
    position: relative;
    min-width: var(--width);
    min-height: var(--height);
    border-radius: var(--height);
    color: #fff;
    background: var(--bg);
    cursor: pointer;
    overflow: hidden;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

    button.login-btn .text,
    button.login-btn .icon-container {
        position: relative;
        z-index: 2;
        color: white !important;
        font-size: 14px !important;
        transition: 500ms ease-out
    }

button:hover .text {
    color: #151111 !important;
    transition: 500ms ease-in
}

button.login-btn .icon-container {
    --icon-size: 25px;
    position: relative;
    width: var(--icon-size);
    height: var(--icon-size);
    margin-left: 15px;
    transition: transform 500ms ease;
}

    button.login-btn .icon-container .icon {
        position: absolute;
        left: 0;
        top: 0;
        width: var(--icon-size);
        height: var(--icon-size);
        transition: transform 500ms ease, opacity 250ms ease;
    }

    button.login-btn .icon-container .icon--left {
        transform: translateX(-200%);
        opacity: 0;
    }

    button.login-btn .icon-container .icon svg {
        width: 100%;
        height: 100%;
        fill: #fff;
    }

button.login-btn::after {
    --btn-bg: #035e92;
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--btn-bg);
    border-radius: var(--height);
    z-index: 1;
    transition: transform 500ms ease;
}

button.login-btn:hover::after {
    transform: translateX(75%);
}

button.login-btn:hover .icon-container {
    transform: translateX(215%);
}

    button.login-btn:hover .icon-container .icon--left {
        transform: translateX(60%);
        opacity: 1;
    }

    button.login-btn:hover .icon-container .icon--right {
        transform: translateX(250%);
        opacity: 0;
    }


.text {
    color: #7a7a7a;
    font-size: 0.7rem;
}

    .text a {
        color: #035E92;
        transition: 0.3s;
    }

        .text a:hover {
            color: #035E92;
        }

.hover-underline-animation {
    position: relative;
    display: inline;
    text-decoration: none;
    color: #035E92; /* or any color you prefer */
    overflow: hidden;
}

    .hover-underline-animation::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 1.5px;
        background-color: #035E92; /* or any color you prefer */
        transition: all 0.3s ease-in-out;
    }

    .hover-underline-animation:hover::after {
        left: 0;
        width: 100%;
    }


main.sign-up-mode form.sign-in-form {
    opacity: 0;
    pointer-events: none;
}

main.sign-up-mode form.sign-up-form {
    opacity: 1;
    pointer-events: all;
}

main.sign-up-mode .forms-wrap {
    left: 0;
}

main.sign-up-mode .carousel {
    left: 45%;
}

.carousel {
    position: absolute;
    height: 100%;
    width: 50%;
    left: 0;
    top: 0;
    background-color: #edf8ff;
    border-radius: 2rem;
    display: grid;
    grid-template-rows: auto 1fr;
    padding-bottom: 2rem;
    overflow: hidden;
    transition: 0.8s ease-in-out;
}

.images-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.image {
    width: 100%;
    grid-column: 1/2;
    grid-row: 1/2;
    opacity: 0;
    transition: opacity 0.3s, transform 0.5s;
}

.img-1 {
    transform: scale(0.4, 0.5);
}

.img-2 {
    transform: scale(0.4, 0.5);
}

.img-3 {
    transform: scale(0.4, 0.5);
}

.image.show {
    opacity: 1;
    transform: none;
}

.text-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}



.text-group {
    display: block;
}

    .text-group h2 {
        line-height: 1.4rem;
        text-align: center;
        font-weight: 600;
        margin-left: 12px; 
        margin-right: 10px;
        font-size: 1rem;
    }

.bullets {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .bullets span {
        display: block;
        width: 0.5rem;
        height: 0.5rem;
        background-color: #aaa;
        margin: 0 0.25rem;
        border-radius: 50%;
        cursor: pointer;
        transition: 0.3s;
    }

        .bullets span.active {
            width: 1.1rem;
            background-color: #151111;
            border-radius: 1rem;
        }

@media (max-width: 850px) {
    .box {
        height: auto;
        max-width: 550px;
        overflow: hidden;
    }

    .inner-box {
        position: static;
        transform: none;
        width: revert;
        height: revert;
        padding: 2rem;
    }

    .forms-wrap {
        position: revert;
        width: 100%;
        height: auto;
    }

    form {
        max-width: revert;
        padding: 1.5rem 2.5rem 2rem;
        transition: transform 0.8s ease-in-out, opacity 0.45s linear;
    }

    .heading {
        margin: 2rem 0;
    }

    form.sign-up-form {
        transform: translateX(100%);
    }

    main.sign-up-mode form.sign-in-form {
        transform: translateX(-100%);
    }

    main.sign-up-mode form.sign-up-form {
        transform: translateX(0%);
    }

    .carousel {
        position: revert;
        height: auto;
        width: 100%;
        padding: 3rem 2rem;
        display: flex;
    }

    .images-wrapper {
        display: none;
    }

    .text-slider {
        width: 100%;
    }
}

@media (max-width: 530px) {
    main {
        padding: 1rem;
    }

    .box {
        border-radius: 2rem;
    }

    .inner-box {
        padding: 1rem;
    }

    .carousel {
        padding: 1.5rem 1rem;
        border-radius: 1.6rem;
    }

    

    .text-group h2 {
        font-size: 1.2rem;
    }

    form {
        padding: 1rem 2rem 1.5rem;
    }
}


div.bring-to-front {
    z-index: 99999 !important;
}


@media only screen and (max-width: 1600px) {
    .box {
        max-width: 900px !important;
        height: 565px !important;
    }

    .heading h2 {
        font-size: 1.8rem;
    }

    label, .text {
        font-size: 0.75rem;
    }

    .text-group h2 {
        line-height: 1.5rem;
        font-size: 0.8rem;
    }

    .text-wrap {
        margin-bottom: 0.5rem
    }

    button.login-btn .text, button.login-btn .icon-container {
        font-size: 12px !important;
    }
}


@media only screen and (max-width: 1300px) {
    .box {
        max-width: 750px !important;
        height: 500px !important;
    }

    .logo img.w-15 {
        width: 15% !important;
    }

    .logo img {
        width: 75% !important;
    }

    .heading h2 {
        font-size: 1.2rem;
    }

    label, .text {
        font-size: 0.7rem;
    }

    .text-group h2 {
        line-height: 0.9rem;
        font-size: 0.8rem;
    }

    .text-wrap {
        margin-bottom: 0.6rem
    }

    button.login-btn .text, button.login-btn .icon-container {
        font-size: 12px !important;
    }
}

@media only screen and (max-width: 1000px) {
    .carousel {
        display: none !important;
    }

    .forms-wrap {
        width: 100%;
        left: 0;
    }

        .forms-wrap form {
            max-width: 400px;
        }

    .box {
        max-width: 600px !important;
        width: calc(100% - 4.1rem);
    }
}

input:valid + label {
    font-size: 0.75rem;
    top: -2px;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
}

.session2FACard {
    height: 470px !important;
    border-radius: 1rem !important;
}


.info2FACard {
    height: 600px !important;
    border-radius: 1rem !important;
}

.check2FACard, .confirm2FACard {
    height: 300px !important;
    border-radius: 1rem !important;
}

.btn-primary, .btn-primary:focus {
    background-color: var(--primary-color);
    box-shadow: 2px 3px 5px rgb(199, 199, 199, 0.8);
    font-size: 16px !important;
    border-radius: 50px;
}

.btn-success:hover, .btn-success:active {
    background-color: var(--success-color-dark);
}

.btn-success, .btn-success:focus {
    background-color: var(--success-color);
    box-shadow: 2px 3px 5px rgb(199, 199, 199, 0.8);
    font-size: 12px !important;
}

.btn-primary:hover, .btn-primary:active {
    background-color: var(--primary-color-dark);
}

.fw-semibold {
    font-weight: 600 !important;
}

.fs-13 {
    font-size: 13px !important;
}

@media only screen and (max-width: 1320px) {
    .w-25 {
        width: 500px !important;
    }
}

/*@media only screen and (max-width: 920px) {
    .w-25 {
        width: 500px !important;
    }
}*/

#toast-container > div {
    padding: 15px 15px 15px 45px;
    width: 350px;
    font-size: 12px !important;
    opacity: 1;
    border-radius: 6px;
    box-shadow: 2.8px 2.8px 2.2px rgba(0, 0, 0, 0.02), 6.7px 6.7px 5.3px rgba(0, 0, 0, 0.028), 12.5px 12.5px 10px rgba(0, 0, 0, 0.035), 22.3px 22.3px 17.9px rgba(0, 0, 0, 0.042), 41.8px 41.8px 33.4px rgba(0, 0, 0, 0.05), 100px 100px 80px rgba(0, 0, 0, 0.07);
}

    #toast-container > div:hover {
        box-shadow: 2.8px 2.8px 2.2px rgba(0, 0, 0, 0.02), 6.7px 6.7px 5.3px rgba(0, 0, 0, 0.028), 12.5px 12.5px 10px rgba(0, 0, 0, 0.035), 22.3px 22.3px 17.9px rgba(0, 0, 0, 0.042), 41.8px 41.8px 33.4px rgba(0, 0, 0, 0.05), 100px 100px 80px rgba(0, 0, 0, 0.07) !important;
    }

.toast-success {
    color: #0f5132 !important;
    background-color: #d1e7dd;
}

#toast-container > .toast-success {
    background-image: url("../img/Icons/circle-check.svg") !important;
    background-size: 20px;
}

.show-password {
    margin-top: 12px;
    float: right;
    margin-right: 5px;
    z-index: 999;
    cursor: pointer;
}

span.error {
    font-size: 12px;
    margin-top: -1.5rem;
    position: relative;
    top: -28px;
}

.toast-error {
    color: #AE2323 !important;
    background-color: #FFCACA !important;
}

#toast-container > .toast-error {
    background-image: url("../img/Icons/circle-x.svg") !important;
    background-size: 20px !important;
}

.session2FACard .inner-box{
    height: auto;
}

.text-small {
    font-size: 12px !important;
}

input[type=number] {
    -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}