.auth-flow {
    padding: 20px 0 34px;
}

.auth-flow__shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 22px;
    align-items: stretch;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(192, 38, 116, 0.14);
    border-radius: 10px;
    background:
        radial-gradient(circle at top left, rgba(192, 38, 116, 0.22), transparent 34%),
        linear-gradient(135deg, #111124 0%, #19192e 55%, #070713 100%);
    color: #fff;
    box-shadow: 0 14px 34px rgba(17, 17, 36, 0.16);
}

.auth-flow__intro,
.auth-flow__card {
    min-width: 0;
}

.auth-flow__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 8px 8px 4px;
}

.auth-flow__intro h1 {
    max-width: 680px;
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.02;
    letter-spacing: 0;
}

.auth-flow__intro p,
.auth-flow__header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
}

.auth-flow__eyebrow {
    margin: 0 0 9px;
    color: var(--rd-pink-logo, #e91e8f);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-flow__steps {
    display: grid;
    gap: 8px;
    max-width: 520px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.auth-flow__steps li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.auth-flow__steps strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
}

.auth-flow__steps span {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
}

.auth-flow__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 22px;
}

.auth-flow__badges span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
}

.auth-flow__form {
    display: block;
}

.auth-flow__shell--single {
    display: block;
    width: min(100%, 460px);
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--rd-text, #111124);
    box-shadow: none;
}

.auth-flow__shell--single .auth-flow__card {
    height: auto;
    border-color: rgba(192, 38, 116, 0.14);
    box-shadow: 0 10px 24px rgba(17, 17, 36, 0.1);
}

.auth-flow__card {
    height: 100%;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 8px;
    background: #fff;
    color: var(--rd-text, #111124);
    box-shadow: 0 12px 28px rgba(7, 7, 19, 0.2);
}

.auth-flow__header {
    margin-bottom: 16px;
}

.auth-flow__header .auth-flow__eyebrow {
    color: var(--rd-pink, #c02674);
}

.auth-flow__header h2 {
    margin: 0 0 6px;
    color: var(--rd-text, #111124);
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: 0;
}

.auth-flow__header p {
    color: var(--rd-text-soft, #777);
    font-size: 13px;
}

.auth-flow__field {
    display: grid;
    gap: 6px;
    margin: 0 0 13px;
    color: var(--rd-text, #111124);
    font-weight: 700;
}

.auth-flow__field input {
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid var(--rd-border, #eee);
    border-radius: 6px;
    background: #fff;
    color: var(--rd-text, #111124);
    font-size: 15px;
}

.auth-flow__field input:focus {
    outline: none;
    border-color: rgba(192, 38, 116, 0.48);
    box-shadow: 0 0 0 3px rgba(192, 38, 116, 0.1);
}

.auth-flow__field small {
    color: var(--rd-text-soft, #777);
    font-size: 11px;
    font-weight: 500;
}

.auth-flow__check {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    margin: 4px 0 16px;
    color: var(--rd-text-mid, #444);
    font-size: 12px;
    line-height: 1.35;
}

.auth-flow__check input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--rd-pink, #c02674);
}

.auth-flow__check a,
.auth-flow__links a,
.auth-flow__switch a {
    color: var(--rd-pink, #c02674);
    font-weight: 700;
}

.auth-flow__links {
    display: flex;
    justify-content: flex-end;
    margin: -2px 0 14px;
    font-size: 12px;
}

.auth-flow__socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.auth-flow__google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    background: #fff;
    color: #202124;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.auth-flow__google:hover,
.auth-flow__google:focus {
    border-color: rgba(66, 133, 244, 0.42);
    color: #202124;
    box-shadow: 0 3px 10px rgba(60, 64, 67, 0.12);
    transform: translateY(-1px);
}

.auth-flow__google-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #4285f4;
    font: 900 18px/1 Arial, sans-serif;
}

.auth-flow__x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #111124;
    border-radius: 6px;
    background: #111124;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.auth-flow__x:hover,
.auth-flow__x:focus {
    background: #000;
    color: #fff;
    box-shadow: 0 3px 10px rgba(17, 17, 36, 0.18);
    transform: translateY(-1px);
}

.auth-flow__x-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font: 900 16px/1 Arial, sans-serif;
}

.auth-flow__divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    color: var(--rd-text-soft, #777);
    font-size: 12px;
    font-weight: 700;
}

.auth-flow__divider::before,
.auth-flow__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rd-border, #eee);
}

.auth-flow__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 6px;
    background: var(--rd-pink, #c02674);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.auth-flow__submit:hover,
.auth-flow__submit:focus {
    background: var(--rd-pink-dark, #a91f62);
    color: #fff;
    transform: translateY(-1px);
}

.auth-flow__switch {
    margin: 14px 0 0;
    color: var(--rd-text-soft, #777);
    font-size: 13px;
    text-align: center;
}

.auth-flow .errors,
.auth-flow .messages {
    margin: 0 0 14px;
    border-radius: 6px;
    box-shadow: none;
}

@media (max-width: 820px) {
    .auth-flow {
        padding-top: 12px;
    }

    .auth-flow__shell {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
        border-radius: 8px;
    }

    .auth-flow__shell--single {
        display: block;
        padding: 0;
        border-radius: 0;
    }

    .auth-flow__intro {
        padding: 0;
    }

    .auth-flow__intro h1 {
        font-size: 30px;
    }

    .auth-flow__card {
        padding: 16px;
    }
}
