.auth-layout.auth-login-layout {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 100dvh;
    padding: 24px clamp(24px, 5vw, 84px);
    background-color: #fff;
    background-image:
        linear-gradient(180deg, #e8f7ed 0%, #f5fbf7 20%, #ffffff00 43%),
        radial-gradient(circle at 8% 15%, #eaf9ef 0, #eaf9ef00 25%),
        radial-gradient(circle at 90% 86%, #effaf2 0, #effaf200 28%),
        url('../images/auth-wave.svg');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

.auth-login-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.auth-login-art {
    position: absolute;
    left: calc(clamp(32px, 5vw, 96px) + min(21vw, 260px) - min(16vw, 200px));
    bottom: calc(clamp(28px, 5vh, 70px) + 92px);
    z-index: 1;
    width: min(32vw, 400px);
    aspect-ratio: 1;
}

.auth-login-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-login-form-column {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    min-width: 0;
    margin: auto 0 auto auto;
    padding: 28px 32px 22px;
    border: 1px solid #e8eee9;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 52px #1833211a, 0 3px 12px #1833210d;
}

.auth-login-form-column:has(.registration-card) {
    width: min(44vw, 620px);
    max-width: 620px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.auth-login-form-column > .auth-login-brand {
    margin: 0 0 20px;
}

.auth-login-form-column > .auth-card,
.auth-login-form-column > .auth-message,
.auth-login-form-column > .auth-footer {
    width: 100%;
    min-width: 0;
}

.auth-login-form-column > .auth-card {
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-login-layout .auth-login-form-column > .auth-card.registration-card {
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-login-form-column .divider span {
    background: transparent;
}

.auth-login-form-column > .auth-message {
    margin-top: 18px;
}

.auth-login-form-column > .auth-footer {
    margin-top: 22px;
    padding: 0;
    text-align: center;
}

.auth-login-intro {
    position: absolute;
    left: clamp(32px, 5vw, 96px);
    bottom: clamp(28px, 5vh, 70px);
    z-index: 2;
    width: min(42vw, 520px);
    padding: 20px 24px 18px;
    border: 1px solid #dceee1;
    border-radius: 18px;
    background: #fffffff5;
    box-shadow: 0 16px 42px #18332117;
    color: #14291c;
    pointer-events: auto;
}

.auth-login-intro-label {
    display: block;
    color: #0c7135;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}

.auth-login-intro h2 {
    min-height: 54px;
    margin: 14px 0 6px;
    font-size: clamp(20px, 1.65vw, 24px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.035em;
}

.auth-login-caret {
    display: inline-block;
    width: 2px;
    height: .85em;
    margin-left: 3px;
    background: #16a34a;
    vertical-align: -.06em;
    animation: auth-login-caret-blink .8s step-end infinite;
}

@keyframes auth-login-caret-blink {
    50% { opacity: 0; }
}

.auth-login-intro p {
    margin: 0;
    color: #30483a;
    font-size: 13px;
    line-height: 1.5;
}

.auth-login-phrase-dots {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
}

.auth-login-phrase-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: #cbd8cf;
    cursor: pointer;
    transition: width .22s, background .22s;
}

.auth-login-phrase-dots button.is-active {
    width: 23px;
    background: #16a34a;
}

.auth-login-layout .auth-card input:not([type="checkbox"]) {
    background: #fff;
    border-color: #dce6df;
    box-shadow: 0 1px 2px #172f2008;
}

.auth-login-layout .auth-card input:not([type="checkbox"]):focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px #16a34a1a;
}

.auth-login-layout .auth-card input:-webkit-autofill,
.auth-login-layout .auth-card input:-webkit-autofill:hover {
    -webkit-text-fill-color: #414744;
    caret-color: #414744;
    box-shadow: 0 0 0 1000px #fff inset;
}

.auth-login-layout .auth-card input:-webkit-autofill:focus {
    -webkit-text-fill-color: #414744;
    caret-color: #414744;
    border-color: #16a34a;
    box-shadow: 0 0 0 1000px #fff inset, 0 0 0 3px #16a34a1a;
}

.auth-layout .auth-login-brand {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.auth-layout .auth-login-brand .brand-logo {
    animation: auth-logo-enter .9s cubic-bezier(.22, 1, .36, 1) both;
}

.auth-layout .auth-login-brand::before,
.auth-layout .auth-login-brand::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.auth-layout .auth-login-brand::before {
    inset: 0;
    background: linear-gradient(95deg, #f5fbf8ba, #f5fbf875);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: auth-logo-glass .94s ease-out both;
}

.auth-layout .auth-login-brand::after {
    top: 0;
    bottom: 0;
    left: 0;
    width: 20%;
    opacity: 0;
    background: linear-gradient(105deg, transparent 0%, #ffffffa6 38%, #fff 50%, #ffffffa6 62%, transparent 100%);
    filter: blur(3px);
    transform: translateX(-100%) skewX(-17deg);
    animation: auth-logo-shine 5s ease-in-out .82s infinite;
}

@keyframes auth-logo-enter {
    0% { opacity: 0; transform: translateX(-34px); filter: blur(5px); }
    55% { opacity: .8; filter: blur(2px); }
    100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}

@keyframes auth-logo-glass {
    0%, 30% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes auth-logo-shine {
    0% { opacity: 0; transform: translateX(-100%) skewX(-17deg); }
    2% { opacity: .8; }
    10% { opacity: .9; }
    13%, 100% { opacity: 0; transform: translateX(500%) skewX(-17deg); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-layout .auth-login-brand .brand-logo { animation: none; }
    .auth-layout .auth-login-brand::before,
    .auth-layout .auth-login-brand::after { display: none; }
    .auth-login-caret { display: none; }
}

@media (max-width: 1100px) {
    .auth-layout.auth-login-layout {
        align-items: center;
        padding: 30px 24px;
    }

    .auth-login-form-column {
        margin: auto;
    }

    .auth-login-form-column:has(.registration-card) {
        width: 100%;
        margin: auto;
    }

    .auth-login-art {
        display: none;
    }

    .auth-login-intro {
        display: none;
    }
}

@media (max-width: 600px) {
    .auth-layout.auth-login-layout {
        padding: 26px 14px 30px;
    }

    .auth-login-form-column {
        padding: 24px;
    }
}
