﻿/*-------------------Login Form Start-------------------*/
.login_background {
    background-image: url('/image/abstract.png');
    /*    background: linear-gradient(135deg, var(--mud-palette-primary) 100%, var(--mud-palette-secondary) 0%);*/
    background-color: var(--mud-palette-surface);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

.login_container {
    position: relative;
    background-color: var(--mud-palette-surface);
    border-radius: 25px;
    /*box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);*/
    box-shadow: -1px 6px 30px rgb(99 99 99 / 20%);
    width: 900px;
    max-width: 95%;
    overflow: hidden;
    min-height: 550px;
}

    .login_container p {
        font-size: 14px;
        line-height: 24px;
        letter-spacing: 0.3px;
        margin: 20px 0;
        opacity: 0.9;
    }

.login_additional_action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

    /*     MudBlazor check box */
    .login_additional_action .mud-icon-button {
        padding: 0px !important;
        padding-right: 6px !important;
    }

.login_container a {
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.9
}

    .login_container a:hover {
        color: var(--mud-palette-primary);
        text-decoration: underline;
    }

.login_container .button {
    background: linear-gradient(to right, var(--mud-palette-primary), var(--mud-palette-secondary));
    font-size: 14px;
    color: #fff;
    padding: 12px 45px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .login_container .button.hidden {
        background: transparent;
        border: 2px solid #fff;
        box-shadow: none;
    }

        .login_container .button.hidden:hover {
            background: rgba(255, 255, 255, 0.1);
        }

.login_container form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 35px;
    height: 100%;
}

/*MudStep controls*/
.login_container .mud-step {
    padding: 0 !important;
}

.login_container .mud-stepper {
    padding: 0 !important;
}

.login_container .mud-stepper-button-complete, .login_container .mud-stepper-button-previous {
    display: none;
}

.stepValid .mud-stepper-button-previous {
    display: flex;
    margin-top: 3px;
    margin-left: -28px;
    font-size: 12px;
}

.mud-stepper-actions {
    padding: 0;
    justify-content: center;
}

    .mud-stepper-actions .flex-grow-1 {
        flex-grow: 0 !important;
    }

.mud-input-control.city {
    width: 28%;
}

.mud-stepper-button-next {
    background: linear-gradient(to right, var(--mud-palette-primary), var(--mud-palette-secondary));
    font-size: 14px;
    color: #fff !important;
    padding: 10px 15px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: fixed;
    bottom: 80px;
    right: 55px;
}

/*-----------------------------*/
.login_form_container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign_in {
    left: 0;
    width: 50%;
    z-index: 2;
}

.login_container.active .sign_in {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}

.sign_up {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.login_container.active .sign_up {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: move 0.6s;
    overflow: hidden;
}

@keyframes move {
    0%, 50% {
        opacity: 0;
        z-index: 1;
    }

    51%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

.login_toggle-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    z-index: 10;
    border-radius: 150px 0 0 100px;
}

.login_container.active .login_toggle-container {
    transform: translateX(-100%);
    border-radius: 0 150px 100px 0;
}

.login_container .toggle {
    background: linear-gradient(to right, var(--mud-palette-primary), var(--mud-palette-secondary));
    height: 100%;
    color: #fff;
    width: 200%;
    position: relative;
    left: -100%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.login_container.active .toggle {
    transform: translateX(50%);
}

.login_container .toggle_panel {
    position: absolute;
    display: flex;
    width: 50%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.toggle_left {
    transform: translateX(-200%);
}

.toggle_right {
    right: 0;
    transform: translateX(0);
}

.login_container.active .toggle_left {
    transform: translateX(0);
}

.login_container.active .toggle_right {
    transform: translateX(200%);
}

.login_container h1 {
    font-size: 28px;
    margin-bottom: 45px;
}

.toggle_panel h1 {
    color: #fff;
    font-size: 32px;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f00;
    opacity: 0;
}

.additional-text {
    display: none !important;
    font-size: 14px;
    color: #666;
}

.toggle-link {
    display: none;
    color: var(--mud-palette-primary);
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .toggle-link:hover {
        color: var(--mud-palette-secondary);
    }

.welcome-block {
    display: none;
    text-align: center;
    margin-bottom: 20px;
}

.city_address_pair {
    flex-direction: row !important;
}

.mud-input-control.city {
    width: 28%;
}

.mud-step.mud-ripple {
    background: var(--mud-palette-surface);
}

.stepValid .placeholder-block {
    display: none;
}

.mobile-block {
    display: none;
    background: var(--mud-palette-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom-left-radius: 65px;
    border-bottom-right-radius: 65px;
/*    position: absolute;
    left: 0;
    top: 0;*/
    width: 100%;
    height: 25%;
    color: white;
}

@media (max-width: 750px) {
    .login_container {
        max-width: unset;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .login_container {
        overflow-y: auto;
        position: relative;
        min-height: unset;
        width: 100%;
        height: 75%;
        max-width: 100%;
        border-radius: unset;
        padding-top: 25px;
        box-shadow: unset;
    }

    .login_background {
        height: 100%;
        justify-content: end;
    }

    .mobile-block {
        display: flex;
    }

    .placeholder-block {
        display: none;
    }

    .city_address_pair {
        flex-direction: column !important;
    }

    .mud-input-control.city {
        width: 100%;
    }

    .login_form_container {
        position: absolute;
        width: 100% !important;
        height: auto;
        /*        padding: 30px 0;*/
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    .login_container h1 {
        display: none;
    }

    /* Initial state - sign_in visible */
    .sign_in {
        transform: translateX(0);
        opacity: 1;
        /*        height: 100%;*/
        position: relative;
    }

    /* Initial state - sign_up hidden */
    .sign_up {
        position: absolute;
        top: 0;
        left: 0;
        transform: translateX(100%);
        opacity: 0;
        /*        height: 100%;*/
    }

    /* When active (showing sign_up) */
    .login_container.active .sign_in {
        transform: translateX(-100%);
        opacity: 0;
    }

    .login_container.active .sign_up {
        transform: translateX(0);
        opacity: 1;
        position: relative;
    }

    /* Hide toggle elements on mobile */
    .login_toggle-container,
    .toggle,
    .toggle_panel {
        display: none !important;
    }

    /* Show mobile-specific elements */
    .additional-text,
    .toggle-link {
        display: flex !important;
        justify-content: center;
        align-items: center;
    }

    .welcome-block {
        display: none !important;
    }

    .login_container form {
        padding: 0 20px;
    }

    .login_container p {
        display: flex;
        justify-content: center;
    }

    .login_additional_action {
        gap: 10px;
    }

    .additional-text,
    .toggle-link {
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin-top: -30px;
    }

    .mud-stepper-button-next {
        bottom: -4px;
    }

    .mud-stepper-button-next {
        position: static;
        margin-top: 12px;
    }

    .next .additional-text.step {
        position: static !important;
    }
}

@media (max-width: 348px) {
    .login_additional_action, .login_additional_action p {
        font-size: 12px;
    }
}

/*-------------------Login Form-------------------*/

/*------------------- OTP -------------------*/
.login_background.otp-container .sign_in {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login_background.otp-container h1 {
    /*    margin-bottom: 25px;*/
    /*    margin-top: 53px;*/
    text-align: center;
}

.login_background.otp-container .button:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
    filter: saturate(.25) contrast(.95);
    transform: none;
}

.otp-box {
    width: 50px;
    height: 50px;
    color: currentColor;
    border: 1px solid var(--mud-palette-primary);
    font-size: 20px;
    text-align: center;
    border-radius: 15px;
    background: var(--mud-palette-surface);
    transition: all 0.25s ease;
    outline: none;
}

    .otp-box:focus {
        border-color: var(--mud-palette-primary);
        box-shadow: 0 0 6px 3px var(--mud-palette-primary);
        outline: none;
    }

@media (max-width: 600px) {
    .login_background.otp-container h1 {
        font-size: 24px;
    }

    .login_background.otp-container .resend {
        padding: 0 0 14px 0;
    }
}

@media(max-width: 480px) {
    .otpSucs {
        font-size: 23px;
    }
}

@media (max-width: 420px) {
    .otp-box {
        width: calc(13vw) !important;
        height: 45px;
    }
}

/*------------------- OTP -------------------*/
