:root {
    --auth-ink: #102a43;
    --auth-muted: #526879;
    --auth-teal: #0e6e62;
    --auth-border: #d9e4e8;
}

.rrs-auth {
    margin: 0;
    font-family: "DM Sans", system-ui, sans-serif;
    color: var(--auth-ink);
    background: #fff;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(17rem, .88fr) minmax(24rem, 1.12fr);
    min-height: 100vh;
    min-height: 100svh;
}

.auth-brand {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
    overflow: hidden;
    padding: clamp(2rem, 6vw, 6rem);
    color: #f3fcfb;
    background:
        linear-gradient(145deg, rgb(9 32 51 / 98%), rgb(13 69 69 / 96%)),
        #0a2a3b;
}

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

.auth-brand::before {
    inset: 0;
    background-image: linear-gradient(rgb(180 233 224 / 8%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(180 233 224 / 8%) 1px, transparent 1px);
    background-size: 2.6rem 2.6rem;
    mask-image: linear-gradient(150deg, transparent 18%, #000 100%);
}

.auth-brand::after {
    width: min(35rem, 90vw);
    aspect-ratio: 1;
    right: -44%;
    bottom: -20%;
    border: 1px solid rgb(162 228 217 / 24%);
    border-radius: 50%;
    box-shadow: 0 0 0 3rem rgb(90 200 184 / 7%), 0 0 0 6rem rgb(90 200 184 / 5%);
}

.auth-logo {
    width: 6.4rem;
    height: 6.1rem;
    padding: .7rem;
    border-radius: 1rem;
    background: #fff;
    object-fit: contain;
}

.auth-brand-title {
    margin-bottom: 1.15rem;
    font-size: clamp(2.25rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.05em;
}

.auth-brand-title span {
    display: block;
}

.auth-brand-copy p,
.auth-copyright {
    max-width: 23rem;
    margin: 0;
    color: #cde7e4;
}

.auth-copyright {
    font-size: .83rem;
}

.auth-content {
    display: grid;
    place-items: center;
    padding: 2rem clamp(1.5rem, 6vw, 6rem);
    background: linear-gradient(135deg, #fbfdfd, #fff 64%);
}

.auth-form-panel {
    width: min(100%, 27rem);
}

.auth-form-panel h1 {
    margin: 0 0 1.35rem;
    font-size: clamp(2rem, 3.2vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -.045em;
}

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

.auth-form .form-label {
    margin-bottom: .4rem;
    font-size: .9rem;
    font-weight: 700;
}

.auth-form .form-control {
    min-height: 2.95rem;
    border: 1px solid var(--auth-border);
    border-radius: .65rem;
    color: var(--auth-ink);
}

.auth-form .form-control:focus,
.auth-form .form-check-input:focus {
    border-color: #45a295;
    box-shadow: 0 0 0 .2rem rgb(14 110 98 / 15%);
}

.auth-form .form-check-input:checked {
    border-color: var(--auth-teal);
    background-color: var(--auth-teal);
}

.auth-help {
    margin: -.35rem 0 1.35rem;
    color: var(--auth-muted);
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1.25rem;
    font-size: .9rem;
}

.auth-back,
.auth-options a {
    color: var(--auth-teal);
    font-weight: 700;
    text-underline-offset: .18em;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .65rem;
    font-size: .9rem;
}

.auth-captcha {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .55rem;
}

.auth-captcha img {
    max-width: calc(100% - 3.25rem);
    height: auto;
    background: #eaf4f2;
    border: 1px solid var(--auth-border);
    border-radius: .5rem;
}

.auth-refresh {
    width: 2.75rem;
    min-height: 2.75rem;
    color: var(--auth-teal);
    border: 1px solid var(--auth-border);
    border-radius: .6rem;
    background: #fff;
}

.auth-refresh:hover {
    color: #084f45;
    background: #edf7f5;
    border-color: #b7d6d1;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 3rem;
    color: #fff;
    background: var(--auth-teal);
    border-color: var(--auth-teal);
    border-radius: .65rem;
    font-weight: 700;
}

.auth-submit:hover,
.auth-submit:focus-visible,
.auth-submit:active {
    color: #fff;
    background: #0a584e;
    border-color: #0a584e;
}

.auth-validation ul {
    margin: 0;
    padding-left: 1.2rem;
}

.validation-summary-valid,
.field-validation-valid {
    display: none;
}

@media (max-width: 767.98px) {
    .auth-layout {
        display: flex;
        flex-direction: column;
    }

    .auth-brand {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        gap: .65rem 1rem;
        padding: 1.15rem 1.5rem;
    }

    .auth-logo {
        width: 3.8rem;
        height: 3.55rem;
        padding: .3rem;
        border-radius: .55rem;
    }

    .auth-brand-title {
        display: flex;
        flex-wrap: wrap;
        gap: .12em .24em;
        margin: 0;
        font-size: clamp(1rem, 4.5vw, 1.4rem);
        letter-spacing: -.02em;
    }

    .auth-brand-copy p {
        display: none;
    }

    .auth-copyright {
        flex-basis: 100%;
        font-size: .72rem;
    }

    .auth-content {
        flex: 1;
        padding: 1.6rem 1.25rem 2rem;
    }
}
