:root {
    --login-bg: #08071f;
    --login-bg-2: #14072f;
    --login-pink: #ff2f92;
    --login-pink-dark: #ee177e;
    --login-text: #111128;
    --login-muted: #6d6b78;
    --login-line: #e6e4ea;
    --login-white: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.rl-login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(520px, 1.12fr) minmax(470px, .88fr);
    background:
        radial-gradient(circle at 30% 50%, rgba(109, 34, 201, .24), transparent 34%),
        radial-gradient(circle at 4% 85%, rgba(255, 47, 146, .14), transparent 30%),
        linear-gradient(125deg, var(--login-bg), var(--login-bg-2));
}

.rl-login-brand {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 58px 72px 54px;
    color: #fff;
}

.rl-login-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.rl-login-brand::after {
    content: "";
    position: absolute;
    width: 580px;
    height: 580px;
    left: -220px;
    bottom: -355px;
    border: 1px solid rgba(255, 47, 146, .23);
    border-radius: 50%;
    box-shadow:
        0 0 0 65px rgba(255, 47, 146, .025),
        0 0 0 130px rgba(255, 47, 146, .018),
        0 0 0 195px rgba(255, 47, 146, .012);
}

.rl-login-logo,
.rl-login-copy,
.rl-login-back {
    position: relative;
    z-index: 2;
}

.rl-login-logo {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.rl-login-logo img {
    display: block;
    width: auto;
    height: 58px;
    max-width: 270px;
    object-fit: contain;
}

.rl-login-fallback {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.rl-login-fallback strong {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1.2px;
}

.rl-login-fallback strong span {
    color: var(--login-pink);
}

.rl-login-fallback small {
    margin-top: 5px;
    color: rgba(255,255,255,.58);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.rl-login-copy {
    width: min(570px, 100%);
    margin: auto 0;
    padding: 80px 0;
}

.rl-login-eyebrow {
    margin: 0 0 18px;
    color: var(--login-pink);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .95px;
    text-transform: uppercase;
}

.rl-login-copy h1 {
    margin: 0;
    font-size: clamp(52px, 5vw, 78px);
    line-height: .98;
    letter-spacing: -3.7px;
    font-weight: 900;
}

.rl-login-copy h1 span {
    color: var(--login-pink);
}

.rl-login-copy > p:not(.rl-login-eyebrow) {
    width: min(490px, 100%);
    margin: 27px 0 0;
    color: rgba(255,255,255,.68);
    font-size: 15px;
    line-height: 1.75;
}

.rl-login-benefits {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 16px 35px;
    margin: 34px 0 0;
}

.rl-login-benefits span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,.88);
    font-size: 12px;
    font-weight: 700;
}

.rl-login-benefits svg {
    width: 18px;
    height: 18px;
    color: var(--login-pink);
}

.rl-login-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    color: rgba(255,255,255,.57);
    font-size: 11px;
    font-weight: 700;
    transition: color .18s ease;
}

.rl-login-back:hover {
    color: #fff;
}

.rl-login-back svg {
    width: 17px;
    height: 17px;
}

.rl-login-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 70px;
    background: #fff;
}

.rl-login-form-wrap {
    width: min(440px, 100%);
}

.rl-login-form-wrap h2 {
    margin: 0;
    color: var(--login-text);
    font-size: 39px;
    line-height: 1.05;
    letter-spacing: -1.7px;
    font-weight: 900;
}

.rl-login-form-intro {
    margin: 13px 0 32px;
    color: var(--login-muted);
    font-size: 13px;
    line-height: 1.6;
}

.rl-login-status,
.rl-login-error-summary {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.rl-login-status {
    background: #dcfce7;
    color: #166534;
}

.rl-login-error-summary {
    background: #fff0f3;
    color: #a91f48;
}

.rl-login-error-summary ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.rl-login-field {
    margin-bottom: 19px;
}

.rl-login-field label {
    display: block;
    margin-bottom: 7px;
    color: #32313b;
    font-size: 12px;
    font-weight: 800;
}

.rl-login-field input[type="email"],
.rl-login-field input[type="password"],
.rl-login-field input[type="text"] {
    width: 100%;
    height: 49px;
    padding: 0 14px;
    border: 1px solid #d9d7df;
    border-radius: 6px;
    background: #fff;
    color: var(--login-text);
    font-size: 13px;
    outline: none;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.rl-login-field input:focus {
    border-color: var(--login-pink);
    box-shadow: 0 0 0 3px rgba(255, 47, 146, .09);
}

.rl-login-password-wrap {
    position: relative;
}

.rl-login-password-wrap input {
    padding-right: 48px !important;
}

.rl-password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #87848e;
    cursor: pointer;
    transform: translateY(-50%);
}

.rl-password-toggle svg {
    width: 19px;
    height: 19px;
}

.rl-login-options {
    margin: 2px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.rl-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5d5b66;
    font-size: 12px;
    cursor: pointer;
}

.rl-remember input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--login-pink);
}

.rl-forgot {
    color: var(--login-pink);
    font-size: 12px;
    font-weight: 800;
}

.rl-login-submit {
    width: 100%;
    min-height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--login-pink-dark), var(--login-pink));
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .35px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(255,47,146,.15);
}

.rl-login-submit svg {
    width: 18px;
    height: 18px;
}

.rl-login-help {
    margin-top: 26px;
    padding-top: 23px;
    border-top: 1px solid var(--login-line);
    text-align: center;
    color: #85828d;
    font-size: 11px;
    line-height: 1.6;
}

.rl-login-help strong {
    color: #4d4a55;
}

@media (max-width: 1000px) {
    .rl-login-page {
        grid-template-columns: 1fr 1fr;
    }

    .rl-login-brand {
        padding: 45px 42px;
    }

    .rl-login-panel {
        padding: 50px 42px;
    }

    .rl-login-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .rl-login-page {
        display: block;
        background: #fff;
    }

    .rl-login-brand {
        min-height: auto;
        padding: 31px 24px 38px;
    }

    .rl-login-logo img {
        height: 46px;
        max-width: 210px;
    }

    .rl-login-copy {
        margin: 45px 0 20px;
        padding: 0;
    }

    .rl-login-copy h1 {
        font-size: 48px;
        letter-spacing: -2.5px;
    }

    .rl-login-copy > p:not(.rl-login-eyebrow) {
        font-size: 13px;
    }

    .rl-login-benefits {
        display: none;
    }

    .rl-login-back {
        margin-top: 25px;
    }

    .rl-login-panel {
        min-height: auto;
        padding: 45px 24px 60px;
    }

    .rl-login-form-wrap {
        width: 100%;
        max-width: 480px;
    }

    .rl-login-form-wrap h2 {
        font-size: 34px;
    }
}

@media (max-width: 420px) {
    .rl-login-copy h1 {
        font-size: 42px;
    }

    .rl-login-options {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Mobile auth refinement */
@media (max-width: 760px) {
    .rl-login-page {
        display: block;
        min-height: 100vh;
        background: #ffffff;
    }

    .rl-login-brand {
        position: relative;
        min-height: 390px;
        padding: 26px 24px 30px;
        background:
            radial-gradient(circle at 75% 65%, rgba(109, 34, 201, .24), transparent 42%),
            radial-gradient(circle at 5% 100%, rgba(255, 47, 146, .18), transparent 36%),
            linear-gradient(135deg, #08071f 0%, #12072d 100%);
    }

    .rl-login-brand::before {
        opacity: .16;
    }

    .rl-login-brand::after {
        width: 390px;
        height: 390px;
        left: -190px;
        bottom: -245px;
        box-shadow:
            0 0 0 48px rgba(255, 47, 146, .025),
            0 0 0 96px rgba(255, 47, 146, .018);
    }

    .rl-login-logo img {
        height: 47px;
        max-width: 215px;
    }

    .rl-login-copy {
        width: 100%;
        margin: 48px 0 0;
        padding: 0;
    }

    .rl-login-eyebrow {
        margin-bottom: 12px;
        font-size: 10px;
    }

    .rl-login-copy h1 {
        color: #ffffff;
        font-size: 46px;
        line-height: .98;
        letter-spacing: -2.5px;
    }

    .rl-login-copy > p:not(.rl-login-eyebrow),
    .rl-login-benefits,
    .rl-login-back {
        display: none;
    }

    .rl-login-panel {
        min-height: auto;
        padding: 38px 24px 50px;
        background: #ffffff;
    }

    .rl-login-form-wrap {
        width: 100%;
        max-width: none;
    }

    .rl-login-form-wrap h2 {
        font-size: 34px;
        line-height: 1.05;
        letter-spacing: -1.4px;
    }

    .rl-login-form-intro {
        margin: 11px 0 28px;
        font-size: 13px;
    }

    .rl-login-field {
        margin-bottom: 18px;
    }

    .rl-login-field input[type="email"],
    .rl-login-field input[type="password"],
    .rl-login-field input[type="text"] {
        height: 52px;
    }

    .rl-login-options {
        margin: 3px 0 22px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .rl-remember,
    .rl-forgot {
        font-size: 11px;
    }

    .rl-login-submit {
        min-height: 52px;
    }

    .rl-login-help {
        margin-top: 24px;
    }
}

@media (max-width: 420px) {
    .rl-login-brand {
        min-height: 365px;
    }

    .rl-login-copy {
        margin-top: 43px;
    }

    .rl-login-copy h1 {
        font-size: 42px;
    }

    .rl-login-form-wrap h2 {
        font-size: 31px;
    }

    .rl-login-options {
        flex-direction: row;
        align-items: center;
    }
}
