﻿@import url("https://rsms.me/inter/inter.css");

.auth {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    background: linear-gradient(180deg, #F0F3F4 0%, #E2E7E9 100%);
    font-weight: 500;
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    color: #627684;
}

.auth--anime .auth__title {
    animation: authTitleEntry 1200ms cubic-bezier(0, 0, 0, 1);
    animation-fill-mode: backwards;
    animation-delay: 400ms;
}

.auth--anime .auth__form {
    animation: authEntry 1200ms cubic-bezier(0, 0, 0, 1);
    animation-fill-mode: backwards;
    animation-delay: 800ms;
}

.auth__box {
    width: 30rem;
    padding: 4rem;
    border-radius: 0.5rem;
    background: #FFF;
    overflow: hidden;
    box-shadow: 0px 32px 40px -24px rgba(0, 44, 77, 0.25);
    animation: authEntry 1200ms cubic-bezier(0, 0, 0, 1);
}

.auth__wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth__header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.auth__logo {
    border-right: 1px solid #E2E7E9;
    padding-right: 1.5rem;
    background-color: #fff;
    z-index: 1;
    position: relative;
}

.auth__title {
    color: #1D2830;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.auth__subtitle {
    color: #1D2830;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.auth__form {
    display: flex;
    flex-direction: column;
    margin-block-end: 0;
}

.auth__group {
    margin-bottom: 1.5rem;
}

.auth__label {
    line-height: 1;
    margin-bottom: 0.5rem;
}

.auth__inputText {
    background: #F0F3F4;
    border-radius: 0.25rem;
    border: none;
    color: #1D2830;
    display: flex;
    line-height: 1rem;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: box-shadow 200ms ease-in-out;
}

    .auth__inputText:hover {
        box-shadow: 0 0 0 2px #E2E7E9 inset, 0 0 0 4px #FFF inset;
    }

    .auth__inputText:focus, .auth__inputText:focus-visible {
        outline-color: transparent;
        outline-width: 0px;
        outline-offset: 0px;
        box-shadow: 0 0 0 2px #A8D2F0 inset, 0 0 0 4px #FFF inset;
    }

.auth__inputCheck {
    --auth-check-size: 1.25rem;
    --auth-check-active: #338CCC;
    appearance: none;
    background-color: #F0F3F4;
    height: var(--auth-check-size);
    width: var(--auth-check-size);
    cursor: pointer;
    margin: 0;
    position: relative;
    transition: background-color 200ms ease-in-out;
    border-radius: 0.125rem;
}

    .auth__inputCheck:hover, .auth__inputCheck:focus, .auth__inputCheck:focus-visible {
        outline-color: transparent;
        outline-width: 0px;
        outline-offset: 0px;
        background-color: #E2E7E9;
    }

    .auth__inputCheck:checked {
        background-color: var(--auth-check-active);
        border-color: var(--auth-check-active);
    }

        .auth__inputCheck:checked[type=checkbox] {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFFFFF' d='M18.71,7.21a1,1,0,0,0-1.42,0L9.84,14.67,6.71,11.53A1,1,0,1,0,5.29,13l3.84,3.84a1,1,0,0,0,1.42,0l8.16-8.16A1,1,0,0,0,18.71,7.21Z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
            background-size: var(--form-check-size);
        }

            .auth__inputCheck:checked[type=checkbox]:hover {
                background-color: var(--auth-check-active);
                border-color: var(--auth-check-active);
            }

.auth__button {
    position: relative;
    align-items: center;
    align-self: stretch;
    border-radius: 0.25rem;
    border: none;
    color: var(--white, #FFF);
    display: flex;
    justify-content: center;
    line-height: 1.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    overflow: hidden;
    transition: box-shadow 200ms ease-in-out;
    text-decoration: none;
    isolation: isolate;
    cursor: pointer;
}

    .auth__button span {
        position: relative;
        z-index: 1;
    }

    .auth__button:before {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%), linear-gradient(90deg, #1F72AD 0%, #338CCC 50%, #1F72AD 100%);
        transition: filter 200ms ease-in-out;
        position: absolute;
        inset: 0;
        z-index: -1;
        content: "";
    }

    .auth__button:hover:before, .auth__button:focus:before, .auth__button:focus-visible:before {
        filter: brightness(1.2);
    }

    .auth__button:active:before {
        filter: none;
    }

    .auth__button:disabled:before {
        filter: saturate(0.5);
        opacity: 0.5;
    }

    .auth__button:focus, .auth__button:focus-visible {
        outline-color: transparent;
        outline-width: 0px;
        outline-offset: 0px;
    }

.auth__link {
    color: #338CCC;
    line-height: 1;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: color 200ms ease-in-out;
    margin-top: 1.5rem;
}

    .auth__link:hover .auth__link:focus, .auth__link:focus-visible {
        color: #085891;
        text-decoration: underline;
        outline-color: transparent;
        outline-width: 0px;
        outline-offset: 0px;
    }

.auth__textAccent {
    color: #1D2830;
    font-weight: 700;
}

.auth__message {
    margin-bottom: 3rem;
}

.auth__alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #FFE5EA;
    color: #E0062A;
    margin-top: 1.5rem;
    border-radius: 0.125rem;
}

    .auth__alert .uil {
        font-size: 1.25rem;
        height: 1.25rem;
        line-height: 1;
    }

.auth__loading {
    --uib-size: 24px;
    --uib-color: white;
    --uib-speed: .8s;
    --uib-bg-opacity: 0.2;
    height: var(--uib-size);
    width: var(--uib-size);
    transform-origin: center;
    animation: authLoadingRotate var(--uib-speed) linear infinite;
    will-change: transform;
    overflow: visible;
}

.auth__loadingCar {
    fill: none;
    stroke: var(--uib-color);
    stroke-dasharray: 25, 75;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    transition: stroke 0.5s ease;
}

.auth__loadingTrack {
    fill: none;
    stroke: var(--uib-color);
    opacity: var(--uib-bg-opacity);
    transition: stroke 0.5s ease;
}

@keyframes authLoadingRotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes authEntry {
    0% {
        opacity: 0;
        transform: translateY(5rem);
    }

    50% {
        opacity: 1;
        transform: translateY(0rem);
    }
}

@keyframes authTitleEntry {
    0% {
        opacity: 0;
        transform: translateX(-5rem);
    }

    100% {
        opacity: 1;
        transform: translateX(0rem);
    }
}
