.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.v2-auth-route-shell {
    min-height: 48vh;
}

.v2-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 120;

    display: grid;
    place-items: center;

    padding: 1.25rem;
}

.v2-auth-modal[hidden] {
    display: none;
}

.v2-auth-backdrop {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(14, 19, 31, 0.56),
            rgba(14, 19, 31, 0.68)
        );

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.v2-auth-dialog {
    position: relative;
    z-index: 1;

    width: min(100%, 31rem);
}

.v2-auth-panel {
    overflow: hidden;

    border: 1px solid rgba(226, 233, 245, 0.92);
    border-radius: 1.55rem;

    background:
        radial-gradient(circle at top left, rgba(114, 153, 255, 0.16), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #fdfefe 100%);

    box-shadow:
        0 28px 76px rgba(15, 23, 42, 0.2);
}

.v2-auth-card {
    position: relative;

    padding: 1.5rem 1.7rem 1.55rem;
}

.v2-auth-card::before {
    content: "";

    position: absolute;
    top: 4.6rem;
    right: -2rem;
    left: -2rem;

    height: 8rem;

    border-radius: 50%;

    background:
        linear-gradient(
            180deg,
            rgba(106, 152, 255, 0.12) 0%,
            rgba(106, 152, 255, 0.02) 100%
        );

    transform: rotate(-8deg);

    pointer-events: none;
}

.v2-auth-card::after {
    content: "";

    position: absolute;
    top: 7rem;
    right: -1rem;

    width: 14rem;
    height: 4rem;

    border-top: 2px solid rgba(117, 163, 255, 0.12);
    border-radius: 50%;

    transform: rotate(-12deg);

    pointer-events: none;
}

.v2-auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;

    display: grid;
    place-items: center;

    width: 2.5rem;
    height: 2.5rem;

    border: 0;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;

    transition:
        transform .18s ease,
        background-color .18s ease;
}

.v2-auth-close span {
    position: absolute;

    width: 1.3rem;
    height: 1.7px;

    border-radius: 999px;

    background: #60708d;
}

.v2-auth-close span:first-child {
    transform: rotate(45deg);
}

.v2-auth-close span:last-child {
    transform: rotate(-45deg);
}

.v2-auth-close:hover {
    transform: rotate(90deg);
    background: rgba(239, 244, 252, 0.86);
}

.v2-auth-view {
    display: none;
    position: relative;
    z-index: 1;
}

.v2-auth-view.is-active {
    display: block;
}

.v2-auth-hero {
    text-align: center;
    padding: .5rem 1.3rem 1.25rem;
}

.v2-auth-logo {
    display: block;

    width: min(100%, 15rem);

    margin: 0 auto 1.15rem;
}

.v2-auth-hero h2 {
    margin: 0 0 .4rem;

    color: #19294a;

    font-family: "Manrope", "Plus Jakarta Sans", sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}

.v2-auth-hero p {
    margin: 0;

    color: #70809a;

    font-size: .82rem;
    font-weight: 500;
    line-height: 1.55;
}

.v2-auth-alert {
    margin-bottom: .9rem;
    padding: .82rem .95rem;

    border: 1px solid transparent;
    border-radius: .95rem;

    font-size: .79rem;
    font-weight: 600;
    line-height: 1.55;
}

.v2-auth-alert.is-error {
    border-color: #ffd8d6;
    background: #fff7f7;
    color: #c64b4b;
}

.v2-auth-alert.is-success {
    border-color: #cfead4;
    background: #f3fff5;
    color: #2f8a4d;
}

.v2-auth-form {
    display: grid;
    gap: .88rem;
}

.v2-auth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .88rem;
}

.v2-auth-field-full {
    grid-column: auto;
}

.v2-auth-field label {
    display: none;
}

.v2-auth-input-shell,
.v2-auth-password-shell {
    position: relative;
}

.v2-auth-input-shell input,
.v2-auth-password-shell input {
    width: 100%;
    height: 3.35rem;
    padding: 0 1rem 0 3.05rem;

    border: 1px solid #e1e8f3;
    border-radius: 1rem;

    background: #fff;

    color: #223552;

    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: .92rem;
    font-weight: 600;

    outline: none;

    box-shadow:
        0 4px 12px rgba(31, 48, 74, 0.03);

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.v2-auth-input-shell input::placeholder,
.v2-auth-password-shell input::placeholder {
    color: #9ba8bb;
    font-weight: 500;
}

.v2-auth-input-shell input:focus,
.v2-auth-password-shell input:focus {
    border-color: #88aaf0;
    box-shadow:
        0 0 0 4px rgba(91, 133, 222, 0.1),
        0 6px 16px rgba(49, 89, 153, 0.05);
}

.v2-auth-input-icon {
    position: absolute;
    top: 50%;
    left: 1.05rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #7f8da3;

    font-size: 1.08rem;

    transform: translateY(-50%);
}

.v2-auth-password-shell input {
    padding-right: 3rem;
}

.v2-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: .55rem;

    display: grid;
    place-items: center;

    width: 2.2rem;
    height: 2.2rem;

    border: 0;
    border-radius: .78rem;

    background: transparent;

    color: #8694aa;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        color .18s ease,
        background-color .18s ease;
}

.v2-auth-password-toggle svg {
    width: 1.08rem;
    height: 1.08rem;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.v2-auth-password-toggle:hover {
    background: #eef4ff;
    color: #335ea8;
}

.v2-auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: .75rem;

    margin-top: -.12rem;
}

.v2-auth-check {
    display: inline-flex;
    align-items: center;
    gap: .5rem;

    color: #687b98;
    font-size: .78rem;
    font-weight: 600;
}

.v2-auth-check input {
    width: .98rem;
    height: .98rem;
    accent-color: #2e64d6;
}

.v2-auth-meta a,
.v2-auth-note {
    color: #5a79d4;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
}

.v2-auth-meta a:hover {
    color: #2d59c4;
}

.v2-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: .58rem;

    width: 100%;
    min-height: 3.25rem;

    border: 0;
    border-radius: 1rem;

    background:
        linear-gradient(
            135deg,
            #2f60ee 0%,
            #284fda 100%
        );

    color: #fff;

    font-family: "Manrope", "Plus Jakarta Sans", sans-serif;
    font-size: 1rem;
    font-weight: 800;

    cursor: pointer;

    box-shadow: 0 14px 28px rgba(37, 95, 216, 0.2);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}

.v2-auth-submit svg {
    width: 1rem;
    height: 1rem;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform .18s ease;
}

.v2-auth-submit:hover {
    transform: translateY(-1px);
    filter: saturate(1.04);
    box-shadow: 0 18px 34px rgba(37, 95, 216, 0.26);
}

.v2-auth-submit:hover svg {
    transform: translateX(2px);
}

.v2-auth-note {
    margin: -.1rem 0 0;

    color: #73829a;
    font-size: .76rem;
    font-weight: 600;
}

.v2-auth-switch-copy {
    margin: .2rem 0 0;

    color: #6d7e98;

    font-size: .82rem;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
}

.v2-auth-switch-copy button {
    padding: 0;

    border: 0;

    background: transparent;

    color: #2f60ee;

    font: inherit;
    font-weight: 800;

    cursor: pointer;
}

.v2-auth-switch-copy button:hover {
    color: #264fc5;
}

.v2-auth-modal.is-visible .v2-auth-dialog {
    animation: v2AuthPopup .26s cubic-bezier(.22,.61,.36,1);
}

body.v2-auth-lock {
    overflow: hidden;
}

@keyframes v2AuthPopup {
    0% {
        transform: translateY(14px) scale(.985);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .v2-auth-modal {
        padding: .75rem;
    }

    .v2-auth-dialog {
        width: 100%;
    }

    .v2-auth-panel {
        border-radius: 1.3rem;
    }

    .v2-auth-card {
        padding: 1.2rem 1rem 1.2rem;
    }

    .v2-auth-card::before {
        top: 4rem;
        left: -1rem;
        right: -1rem;
        height: 6rem;
    }

    .v2-auth-logo {
        width: min(100%, 12.5rem);
        margin-bottom: .95rem;
    }

    .v2-auth-hero {
        padding:
            .4rem
            .4rem
            1rem;
    }

    .v2-auth-hero h2 {
        font-size: 1rem;
    }

    .v2-auth-hero p,
    .v2-auth-switch-copy {
        font-size: .78rem;
    }

    .v2-auth-input-shell input,
    .v2-auth-password-shell input {
        height: 3.05rem;
        font-size: .88rem;
    }

    .v2-auth-submit {
        min-height: 3.05rem;
        font-size: .94rem;
    }

    .v2-auth-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}
