.uc-auth {
    --auth-blue: #234e9b;
    --auth-deep: #1b3b75;
    --auth-sky: #a9cdeb;
    --auth-ink: #18345d;
    --auth-muted: #596b84;
    --auth-line: #dce5f0;

    padding-block: clamp(24px, 4vw, 52px);
    padding-inline: clamp(16px, 4vw, 50px);
    background: #f5f8fc;
    color: var(--auth-ink);
    font: 400 14px/1.55 "DM Sans", sans-serif;
}

.uc-auth__resource > svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.uc-auth__surface {
    display: grid;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 630px;
    overflow: hidden;
    border: 1px solid #e1e8f2;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 60px #1633670a;
}

.uc-auth__welcome {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(32px, 4vw, 54px);
    background: var(--auth-blue);
    color: #fff;
}

.uc-auth__welcome::before,
.uc-auth__welcome::after {
    position: absolute;
    z-index: -1;
    border: 1px solid #ffffff17;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.uc-auth__welcome::before {
    inset: -80px -360px auto auto;
    width: 610px;
    height: 610px;
}

.uc-auth__welcome::after {
    inset: -175px -440px auto auto;
    width: 800px;
    height: 800px;
}

.uc-auth__welcome-content {
    width: 100%;
}

.uc-auth__eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    color: #d5e8fa;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.uc-auth__welcome .uc-auth__eyebrow::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--auth-sky);
    content: "";
}

.uc-auth__hero {
    margin: 0;
    font: 600 clamp(30px, 3.5vw, 42px)/1.18 Manrope, sans-serif;
    letter-spacing: -.045em;
}

.uc-auth__hero span {
    display: block;
    margin-top: 3px;
    color: var(--auth-sky);
}

.uc-auth__description {
    max-width: 350px;
    margin: 20px 0 0;
    color: #e4effb;
    font-size: 14px;
    line-height: 1.7;
}

.uc-auth__resources {
    position: relative;
    display: grid;
    gap: 10px;
    max-width: 365px;
    margin-top: 34px;
}

.uc-auth__resource {
    display: grid;
    grid-template-columns: 37px 1fr 16px;
    align-items: center;
    gap: 13px;
    width: min(100%, 325px);
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    color: var(--auth-deep);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px #122a4a10;
}

.uc-auth__resource--offset {
    width: min(calc(100% - 28px), 310px);
    margin-inline-start: 28px;
    background: #e8f0fa;
}

.uc-auth__resource:hover {
    background: #f2f7fe;
    color: var(--auth-deep);
}

.uc-auth__resource-icon {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 8px;
    background: #edf3fb;
    color: var(--auth-blue);
}

.uc-auth__resource-icon svg {
    width: 18px;
    height: 18px;
}

.uc-auth__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(32px, 4.8vw, 57px);
}

.uc-auth__eyebrow--panel {
    margin-bottom: 18px;
    color: var(--auth-blue);
}

.uc-auth__panel h1 {
    margin: 0;
    color: var(--auth-ink);
    font: 700 32px/1.25 Manrope, sans-serif;
    letter-spacing: -.045em;
}

.uc-auth__intro {
    margin: 10px 0 0;
    color: var(--auth-muted);
    font-size: 14px;
}

.uc-auth__notice,
.uc-auth__form {
    margin-top: 27px;
}

.uc-auth__form .form-group {
    margin-bottom: 17px;
}

.uc-auth__form .input-label {
    margin-bottom: 7px;
    color: var(--auth-ink);
    font-size: 13px;
    font-weight: 650;
}

.uc-auth__form input.form-control:not([type="file"]),
.uc-auth__form select.form-control {
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    background-color: #fff;
    color: var(--auth-ink);
    font: inherit;
}

.uc-auth__form .form-control:focus {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 3px #234e9b20;
}

.uc-auth__form .form-control.is-invalid {
    border-color: #b42338;
}

.uc-auth__form .invalid-feedback {
    color: #a4172c;
}

.uc-auth__password {
    position: relative;
}

.uc-auth__form .uc-auth__password input.form-control {
    padding-inline-end: 47px;
}

.uc-auth__password + .invalid-feedback {
    display: block;
}

.uc-auth__password-toggle {
    position: absolute;
    inset-block: 5px;
    inset-inline-end: 5px;
    display: grid;
    place-items: center;
    width: 38px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
}

.uc-auth__password-toggle[hidden] {
    display: none;
}

.uc-auth__password-toggle:hover,
.uc-auth__password-toggle[aria-pressed="true"] {
    background: #edf3fc;
    color: var(--auth-blue);
}

.uc-auth__password-toggle svg {
    width: 18px;
    height: 18px;
}

.uc-auth .uc-auth__submit {
    min-height: 48px;
    margin-top: 24px;
    border: 1px solid var(--auth-blue);
    border-radius: 8px;
    background: var(--auth-blue);
    color: #fff;
    font: 700 14px/1.3 "DM Sans", sans-serif;
    box-shadow: 0 5px 12px #234e9b16;
}

.uc-auth .uc-auth__submit:hover,
.uc-auth .uc-auth__submit:focus {
    border-color: var(--auth-deep);
    background: var(--auth-deep);
    color: #fff;
}

.uc-auth__recovery {
    margin: 14px 0 0;
    text-align: end;
    font-size: 13px;
}

.uc-auth__divider {
    margin-top: 18px;
    color: var(--auth-muted);
    text-align: center;
}

.uc-auth__next {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 7px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #eaf0f6;
    color: var(--auth-muted);
    text-align: center;
    font-size: 13px;
}

.uc-auth__next a,
.uc-auth__recovery a,
.uc-auth__form .custom-control-label a {
    color: var(--auth-blue);
    font-weight: 700;
}

.uc-auth a:focus-visible,
.uc-auth button:focus-visible {
    outline: 3px solid #77a9d6;
    outline-offset: 3px;
}

@media (max-width: 720px) {

    .uc-auth__surface {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        border-radius: 16px;
    }

    .uc-auth__welcome,
    .uc-auth__panel {
        padding: 26px clamp(17px, 6vw, 34px);
    }

    .uc-auth__hero {
        font-size: clamp(24px, 6vw, 30px);
    }

    .uc-auth__eyebrow {
        margin-bottom: 12px;
    }

    .uc-auth__description {
        margin-top: 12px;
        font-size: 13px;
    }

    .uc-auth__resources {
        display: none;
    }

    .uc-auth__panel h1 {
        font-size: 26px;
    }

    .uc-auth__form input.form-control:not([type="file"]),
    .uc-auth__form select.form-control {
        font-size: 16px;
    }

}

.uc-auth--register .uc-auth__surface {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}

.uc-auth--register .uc-auth__panel {
    padding: clamp(25px, 3.4vw, 44px);
}

.uc-register {
    margin-top: 21px;
}

.uc-register__section {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.uc-register__section + .uc-register__section:not(:has(.uc-register__profile:empty)) {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #eaf0f6;
}

.uc-register__section legend {
    float: none;
    width: auto;
    margin: 0 0 11px;
    color: var(--auth-ink);
    font-family: Manrope, sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.uc-register__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 10px 14px;
}

.uc-register__grid > * {
    min-width: 0;
}

.uc-register .uc-register__grid .form-group {
    margin: 0;
}
.uc-register .input-label {
    margin-bottom: 5px;
    line-height: 1.35;
}

.uc-register input.form-control:not([type="file"]),
.uc-register select.form-control {
    min-height: 43px;
    padding-block: 7px;
}

.uc-register__finish {
    display: grid;
    align-items: stretch;
    gap: 14px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eaf0f6;
}

.uc-register__finish--recaptcha {
    grid-template-columns: 164px minmax(0, 1fr);
}

.uc-register__finish > .form-group {
    margin-bottom: 0;
}

.uc-register__consent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.uc-register .uc-auth__submit {
    margin-top: 13px;
    white-space: normal;
}

.uc-auth--register .uc-auth__next {
    margin-top: 17px;
    padding-top: 13px;
}

@media (max-width: 720px) {
    .uc-auth--register .uc-auth__surface {
        grid-template-columns: minmax(0, 1fr);
    }

    .uc-auth--register .uc-auth__welcome {
        padding-block: 22px;
    }

    .uc-register .uc-register__grid input.form-control:not([type="file"]),
    .uc-register .uc-register__grid select.form-control {
        padding-inline-start: 9px;
    }
}

@media (max-width: 430px) {
    .uc-auth--register .uc-auth__panel {
        padding: 23px 17px;
    }

    .uc-register__grid {
        gap: 11px 10px;
    }

    .uc-register__account {
        grid-template-columns: minmax(0, 1fr);
    }

    .uc-register__finish--recaptcha {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 360px) {
    .uc-register__profile {
        grid-template-columns: minmax(0, 1fr);
    }
}
