/**
 * Auth screens — pink jewel (matches dashboard / homepage plans).
 */
body.rx-auth-modern {
    margin: 0;
    min-height: 100dvh;
    font-family: "DM Sans", Inter, Manrope, system-ui, sans-serif;
    background: #f9a8d4;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
}

.rx-auth-screen {
    min-height: 100dvh;
    max-width: 430px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(80% 42% at 100% 0%, rgba(251, 113, 133, 0.45), transparent 55%),
        #fce7f3;
    box-shadow: 0 0 0 1px rgba(190, 24, 93, 0.12), 0 28px 70px rgba(136, 19, 55, 0.18);
}

.rx-auth-screen::before { content: none; }
.rx-auth-waves { display: none; }

.rx-auth-brand {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: max(16px, env(safe-area-inset-top)) 20px 4px;
    text-decoration: none;
    color: inherit;
}

.rx-auth-brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1.5px solid #f0d56a;
    box-shadow: 0 6px 14px rgba(190, 24, 93, 0.22);
    flex-shrink: 0;
}
.rx-auth-brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rx-auth-brand__fallback {
    font-size: 0.7rem;
    font-weight: 800;
    color: #e11d48;
}
.rx-auth-brand__name {
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #881337;
}

.rx-auth-hero {
    position: relative;
    z-index: 1;
    margin: 0.7rem 1.1rem 0;
    padding: 1.15rem 1.15rem 1.05rem;
    overflow: hidden;
    border-radius: 16px;
    border: 1.5px solid #f0d56a;
    background: linear-gradient(180deg, #ffd6e0 0%, #fb7185 18%, #e11d48 55%, #9f1239 100%);
    box-shadow:
        0 0 0 1px #5c3d0c,
        0 12px 24px rgba(190, 24, 93, 0.32);
    color: #fff;
}
.rx-auth-hero::after {
    content: "";
    position: absolute;
    top: -40%;
    left: 8%;
    width: 55%;
    height: 180%;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 32%, rgba(255,255,255,.4) 48%, transparent 64%);
    transform: rotate(10deg);
}
.rx-auth-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 0.35rem;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(80, 0, 30, 0.35);
}
.rx-auth-hero p {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 20rem;
    font-size: 0.8rem;
    line-height: 1.5;
    font-weight: 600;
    color: #ffe4e6;
}

.rx-auth-card-wrap {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 1rem 1.1rem 1.75rem;
}

.rx-auth-card {
    position: relative;
    overflow: visible;
    background: linear-gradient(180deg, #ffd6e0 0%, #fb7185 18%, #e11d48 55%, #9f1239 100%);
    border-radius: 18px;
    border: 1.5px solid #f0d56a;
    padding: 1.15rem 1.05rem 1.25rem;
    box-shadow:
        0 0 0 1px #5c3d0c,
        0 14px 30px rgba(190, 24, 93, 0.3);
    color: #fff;
}

.rx-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 1.15rem;
    padding: 6px;
    border-radius: 12px;
    background: rgba(80, 0, 30, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.rx-auth-tabs a {
    position: relative;
    text-decoration: none;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 228, 230, 0.72);
    padding: 0.55rem 0.4rem;
    border-radius: 8px;
}

.rx-auth-tabs a.is-active {
    color: #fff;
    background: linear-gradient(180deg, #fda4af, #be123c);
    border: 1.5px solid #f0d56a;
    box-shadow: 0 4px 12px rgba(80, 0, 30, 0.35);
}

.rx-auth-tabs a.is-active::after { content: none; }

.rx-auth-field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    padding: 0.78rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(80, 0, 30, 0.38);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.rx-auth-field:focus-within {
    border-color: #f0d56a;
    box-shadow: 0 0 0 3px rgba(240, 213, 106, 0.28);
}

.rx-auth-field i {
    width: 1rem;
    text-align: center;
    color: #f0d56a;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.rx-auth-field input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
}
.rx-auth-field input::placeholder {
    color: rgba(255, 228, 230, 0.65);
    font-weight: 500;
}

.rx-auth-field button.rx-auth-eye {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    color: rgba(255, 228, 230, 0.75);
    flex-shrink: 0;
}

.rx-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.1rem 0 0.2rem;
    font-size: 0.72rem;
}

.rx-auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 0.3rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    background: rgba(80, 0, 30, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    user-select: none;
}

.rx-auth-terms input {
    appearance: none;
    -webkit-appearance: none;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0.1rem 0 0;
    flex-shrink: 0;
    border: 2px solid #f0d56a;
    border-radius: 0.3rem;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.rx-auth-terms input:checked {
    background: #e11d48;
    border-color: #f0d56a;
}

.rx-auth-terms input:checked::after {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 0.02rem;
    width: 0.28rem;
    height: 0.52rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.rx-auth-terms span {
    font-size: 0.74rem;
    line-height: 1.45;
    font-weight: 600;
    color: #ffe4e6;
}

.rx-auth-terms a {
    color: #f0d56a;
    font-weight: 800;
    text-decoration: none;
}

.rx-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #ffe4e6;
    font-weight: 600;
    cursor: pointer;
}

.rx-auth-check input {
    width: 0.95rem;
    height: 0.95rem;
    accent-color: #e11d48;
    cursor: pointer;
}

.rx-auth-link {
    color: #f0d56a;
    font-weight: 700;
    text-decoration: none;
}

.rx-auth-fab { display: none !important; }

.rx-auth-submit {
    margin-top: 1rem;
}

.gx-bubble-btn__icon { display: none; }
.gx-bubble-btn__label,
.gx-jewel__label {
    position: relative;
    z-index: 3;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

.rx-auth-msg {
    margin: 0 0 0.75rem;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.4;
}

.rx-auth-msg.is-error {
    background: rgba(127, 29, 29, 0.45);
    color: #fecaca;
    border: 1px solid rgba(254, 202, 202, 0.45);
}

.rx-auth-msg.is-success {
    background: rgba(6, 78, 59, 0.4);
    color: #a7f3d0;
    border: 1px solid rgba(167, 243, 208, 0.4);
}

.rx-auth-msg.hidden { display: none; }

.rx-auth-ref,
.rx-auth-ref-note {
    margin: 0 0 0.75rem;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    background: rgba(80, 0, 30, 0.32);
    border: 1px solid rgba(240, 213, 106, 0.4);
    font-size: 0.74rem;
    font-weight: 600;
    color: #ffe4e6;
}

.rx-auth-ref strong,
.rx-auth-ref-note strong { color: #f0d56a; }
