body {
    margin: 0;
    background: #f7f9ff;
    color: #17213d;
    overflow: hidden;
}

.auth-flow-page {
    --auth-blue: #022EDA;
    --auth-info-start: #022EDA;
    --auth-info-mid: #0623a6;
    --auth-info-end: #071a79;
    --auth-ink: #17213d;
    position: relative;
    isolation: isolate;
    height: 100dvh;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 6%, rgba(2, 46, 218, .07), transparent 24rem),
        radial-gradient(circle at 90% 94%, rgba(2, 46, 218, .06), transparent 26rem),
        radial-gradient(circle at 50% 50%, rgba(2, 46, 218, .08), transparent 34rem),
        linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);
}

.auth-flow-page::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: '';
    background-image:
        linear-gradient(rgba(2, 46, 218, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(2, 46, 218, .12) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .3) 12%, #000 28%, #000 72%, rgba(0, 0, 0, .3) 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .3) 12%, #000 28%, #000 72%, rgba(0, 0, 0, .3) 88%, transparent 100%);
}

.auth-flow-page::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: '';
    pointer-events: none;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(2, 46, 218, .08), transparent 30%),
        radial-gradient(ellipse at 100% 100%, rgba(2, 46, 218, .07), transparent 32%),
        linear-gradient(to bottom, rgba(218, 229, 255, .64) 0%, rgba(242, 246, 255, .28) 18%, transparent 34%, transparent 66%, rgba(242, 246, 255, .28) 82%, rgba(214, 227, 255, .68) 100%),
        linear-gradient(to top, rgba(2, 46, 218, .08), transparent 34%, transparent 66%, rgba(2, 46, 218, .08));
}

.auth-flow-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
}

.auth-backdrop-page {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    overflow: hidden;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at 10% 6%, rgba(2, 46, 218, .07), transparent 24rem),
        radial-gradient(circle at 90% 94%, rgba(2, 46, 218, .06), transparent 26rem),
        radial-gradient(circle at 50% 50%, rgba(2, 46, 218, .08), transparent 34rem),
        linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);
}

.auth-backdrop-page::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: '';
    pointer-events: none;
    background-image:
        linear-gradient(rgba(2, 46, 218, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(2, 46, 218, .12) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .3) 12%, #000 28%, #000 72%, rgba(0, 0, 0, .3) 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .3) 12%, #000 28%, #000 72%, rgba(0, 0, 0, .3) 88%, transparent 100%);
}

.auth-backdrop-page::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: '';
    pointer-events: none;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(2, 46, 218, .08), transparent 30%),
        radial-gradient(ellipse at 100% 100%, rgba(2, 46, 218, .07), transparent 32%),
        linear-gradient(to bottom, rgba(218, 229, 255, .64) 0%, rgba(242, 246, 255, .28) 18%, transparent 34%, transparent 66%, rgba(242, 246, 255, .28) 82%, rgba(214, 227, 255, .68) 100%),
        linear-gradient(to top, rgba(2, 46, 218, .08), transparent 34%, transparent 66%, rgba(2, 46, 218, .08));
}

.auth-backdrop-page > * {
    position: relative;
    z-index: 1;
    width: 100%;
}

.auth-backdrop-page .container-xxl {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.auth-flow-layout {
    position: relative;
    width: min(100%, 1040px);
    height: min(680px, calc(100dvh - 120px));
    min-height: 540px;
    border-radius: 30px;
    box-shadow: 0 26px 75px rgba(17, 42, 112, .18), 0 4px 16px rgba(17, 42, 112, .06);
}

.auth-flow-info {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .16), transparent 15rem),
        linear-gradient(145deg, var(--auth-info-start) 0%, var(--auth-info-mid) 58%, var(--auth-info-end) 100%);
}

.auth-flow-info::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: '';
    opacity: .32;
    background-image:
        linear-gradient(rgba(255, 255, 255, .20) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .20) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(135deg, #000 0%, transparent 70%);
    -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 70%);
}

.auth-flow-info::after {
    position: absolute;
    z-index: -1;
    right: -95px;
    bottom: -90px;
    width: 310px;
    height: 280px;
    content: '';
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .04);
    clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, .08));
}

.auth-flow-info-content {
    max-width: 350px;
}

.auth-flow-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.auth-flow-kicker::before {
    width: 28px;
    height: 2px;
    content: '';
    background: rgba(255, 255, 255, .7);
}

.auth-flow-info-title {
    color: #fff;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.auth-flow-info-copy {
    color: rgba(255, 255, 255, .78);
    line-height: 1.7;
}

.auth-flow-info-mark {
    display: grid;
    grid-template-columns: repeat(3, 10px);
    gap: 7px;
    margin-top: 3rem;
}

.auth-flow-info-mark span {
    width: 10px;
    height: 10px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
}

.auth-flow-page--green {
    --auth-blue: #198754;
    --auth-info-start: #198754;
    --auth-info-mid: #13795b;
    --auth-info-end: #0b4f42;
}

.auth-flow-form-panel {
    position: relative;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
}

.auth-flow-logo-link {
    position: absolute;
    z-index: 1;
    top: -28px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 230px;
    transform: translateX(-50%);
}

.auth-flow-logo {
    display: block;
    width: min(100%, 210px);
    height: auto;
}

.auth-flow-content {
    width: min(100%, 440px);
    padding-top: 58px;
}

.auth-flow-title {
    color: var(--auth-ink);
    letter-spacing: -.02em;
}

.auth-flow-subtitle {
    color: #66708d;
    line-height: 1.6;
}

.auth-flow-label {
    color: var(--auth-ink);
}

.auth-flow-input {
    min-height: 58px;
    border: 1px solid #d9e0f0;
    border-radius: 14px;
    color: var(--auth-ink);
    background-color: #fbfcff;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.auth-flow-input:focus {
    border-color: var(--auth-blue);
    background-color: #fff;
    box-shadow: 0 0 0 .25rem rgba(2, 46, 218, .13);
}

.auth-flow-input::placeholder {
    color: #8993ad;
}

.auth-flow-submit {
    min-height: 58px;
    border: 0;
    border-radius: 14px;
    background-color: var(--auth-blue);
    box-shadow: 0 10px 20px rgba(2, 46, 218, .22);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.auth-flow-submit:hover,
.auth-flow-submit:focus-visible {
    border-color: var(--auth-blue);
    background-color: #0128c2;
    box-shadow: 0 14px 24px rgba(2, 46, 218, .28);
    transform: translateY(-1px);
}

.auth-flow-toggle {
    min-height: 58px;
    border-color: #d9e0f0;
    border-radius: 14px;
    color: #66708d;
}

.auth-flow-toggle:hover,
.auth-flow-toggle:focus-visible {
    border-color: var(--auth-blue);
    color: var(--auth-blue);
}

.auth-flow-secondary {
    color: var(--auth-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-flow-secondary:hover,
.auth-flow-secondary:focus-visible {
    color: #01239f;
    text-decoration: underline;
}

.auth-flow-method-link {
    color: var(--auth-blue);
    text-decoration: none;
}

.auth-flow-method-link:hover,
.auth-flow-method-link:focus-visible {
    color: #01239f;
    text-decoration: underline;
}

.auth-flow-notice {
    border: 0;
    border-radius: 14px;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: .65rem;
    margin: 1.25rem 0 1.5rem;
}

.otp-digit {
    width: 3.25rem;
    height: 3.75rem;
    padding: .25rem;
    border: 1px solid #d9e0f0;
    border-radius: 14px;
    color: var(--auth-ink);
    background: #fbfcff;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.otp-digit:focus {
    outline: 0;
    border-color: var(--auth-blue);
    background: #fff;
    box-shadow: 0 0 0 .25rem rgba(2, 46, 218, .13);
}

.otp-digit.is-filled {
    border-color: #198754;
    color: #198754;
    background: #f0fbf5;
    box-shadow: 0 0 0 .2rem rgba(25, 135, 84, .10);
}

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

.otp-error {
    display: block;
    color: #dc3545;
    font-size: .875rem;
}

.otp-resend {
    border-color: rgba(2, 46, 218, .35);
    border-radius: 12px;
    color: var(--auth-blue);
}

@media (max-width: 991.98px) {
    .auth-flow-layout {
        height: min(680px, calc(100dvh - 88px));
        min-height: 540px;
    }
}

@media (max-width: 575.98px) {
    body {
        overflow: auto;
    }

    .auth-flow-page {
        min-height: 100dvh;
        height: auto;
        overflow: visible;
    }

    .auth-flow-shell {
        min-height: 100dvh;
        height: auto;
    }

    .auth-flow-layout {
        width: calc(100% - 2rem);
        height: auto;
        min-height: 0;
        margin-top: 40px;
        border-radius: 24px;
    }

    .auth-flow-form-panel {
        min-height: 610px;
    }

    .otp-inputs {
        gap: .35rem;
    }

    .otp-digit {
        width: 2.65rem;
        height: 3.3rem;
    }
}
