/**
 * Auth screens — cyan theme (waves only)
 */
body.rx-auth-modern {
    margin: 0;
    min-height: 100dvh;
    font-family: 'Manrope', system-ui, sans-serif;
    background: #bae6fd;
    color: #0c3d4a;
    -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: transparent;
    box-shadow: 0 0 0 1px rgba(8, 80, 100, 0.08), 0 28px 70px rgba(8, 80, 100, 0.16);
}

.rx-auth-screen::before {
    content: none;
}

.rx-auth-waves {
    position: absolute;
    top: 0;
    right: 0;
    width: 62%;
    height: 42vh;
    max-height: 300px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.rx-auth-waves .gx-blob {
    position: absolute;
    display: block;
}

.rx-auth-waves .gx-blob--a {
    top: -20%;
    right: -10%;
    width: 95%;
    height: 85%;
    border-radius: 62% 38% 48% 52% / 42% 58% 42% 58%;
    background: linear-gradient(145deg, #a5f3fc 0%, #22d3ee 45%, #0891b2 100%);
    opacity: 0.55;
}

.rx-auth-waves .gx-blob--b {
    top: -8%;
    right: -18%;
    width: 100%;
    height: 95%;
    border-radius: 58% 42% 55% 45% / 48% 52% 38% 62%;
    background: linear-gradient(160deg, #67e8f9 0%, #06b6d4 42%, #0e7490 100%);
}

.rx-auth-waves .gx-blob--c {
    top: 8%;
    right: -22%;
    width: 92%;
    height: 90%;
    border-radius: 52% 48% 42% 58% / 55% 40% 60% 45%;
    background: linear-gradient(170deg, #22d3ee 0%, #0e7490 50%, #155e75 100%);
}

.rx-auth-waves .gx-blob--d {
    top: 22%;
    right: -26%;
    width: 85%;
    height: 88%;
    border-radius: 48% 52% 38% 62% / 50% 45% 55% 50%;
    background: linear-gradient(175deg, #0891b2 0%, #155e75 55%, #164e63 100%);
}

.rx-auth-hero {
    position: relative;
    z-index: 1;
    padding: max(1.5rem, env(safe-area-inset-top)) 1.75rem 0;
    color: #0c3d4a;
}

.rx-auth-hero h1 {
    margin: 0 0 0.65rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #155e75, #0891b2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rx-auth-hero p {
    margin: 0;
    max-width: 16rem;
    font-size: 0.78rem;
    line-height: 1.55;
    font-weight: 600;
    color: #3d6b78;
}

.rx-auth-card-wrap {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 1.35rem 1.25rem 2rem;
    margin-top: 0.5rem;
}

.rx-auth-card {
    position: relative;
    overflow: hidden;
    background: #f4fcfe;
    border-radius: 1.75rem;
    border: 1px solid rgba(8, 80, 100, 0.08);
    padding: 1.35rem 1.25rem 1.35rem;
    box-shadow: 0 18px 48px rgba(8, 145, 178, 0.14), 0 4px 14px rgba(20, 20, 40, 0.06);
}

.rx-auth-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.35rem;
    padding-bottom: 0.15rem;
}

.rx-auth-tabs a {
    position: relative;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: #9b97b0;
    padding-bottom: 0.45rem;
    transition: color 0.2s ease;
}

.rx-auth-tabs a.is-active {
    color: #06b6d4;
}

.rx-auth-tabs a.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0891b2, #22d3ee);
}

.rx-auth-field {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(8, 145, 178, 0.12);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rx-auth-field:focus-within {
    border-color: rgba(8, 145, 178, 0.45);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.rx-auth-field i {
    width: 1rem;
    text-align: center;
    color: #22d3ee;
    font-size: 0.9rem;
    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: #0c3d4a;
}

.rx-auth-field input::placeholder {
    color: #9b97b0;
    font-weight: 500;
}

.rx-auth-field button.rx-auth-eye {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    color: #9b97b0;
    flex-shrink: 0;
}

.rx-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.15rem 0 0.25rem;
    font-size: 0.72rem;
}

.rx-auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 0.35rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.85rem;
    background: #e4f5f9;
    border: 1px solid rgba(8, 145, 178, 0.14);
    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 #67e8f9;
    border-radius: 0.3rem;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.rx-auth-terms input:checked {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-color: #0891b2;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.28);
}

.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: #3d6b78;
}

.rx-auth-terms a {
    color: #06b6d4;
    font-weight: 800;
    text-decoration: none;
}

.rx-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #3d6b78;
    font-weight: 600;
    cursor: pointer;
}

.rx-auth-check input {
    width: 0.95rem;
    height: 0.95rem;
    accent-color: #0891b2;
    cursor: pointer;
}

.rx-auth-link {
    color: #06b6d4;
    font-weight: 700;
    text-decoration: none;
}

.rx-auth-fab {
    display: none !important;
}

/* Auth submit — same 3D bubble buttons as homepage */
.gx-bubble-btn {
    --bb-a: #0e7490;
    --bb-b: #22d3ee;
    --bb-edge: #0a5f75;
    --bb-icon: #0891b2;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 1.15rem 0 0;
    min-height: 54px;
    padding: 0 1rem 0 0.35rem;
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    color: #fff;
    background: linear-gradient(180deg, var(--bb-b) 0%, var(--bb-a) 100%);
    box-shadow:
        0 7px 0 var(--bb-edge),
        0 12px 18px rgba(8, 80, 100, 0.22);
    -webkit-appearance: none;
    appearance: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.gx-bubble-btn:active {
    transform: translateY(3px);
    box-shadow:
        0 3px 0 var(--bb-edge),
        0 6px 10px rgba(8, 80, 100, 0.18);
}

.gx-bubble-btn__icon {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    margin: 3px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #fff 0%, #f4f8fa 100%);
    color: var(--bb-icon);
    font-size: 1.05rem;
    box-shadow:
        0 4px 0 #c9d8df,
        inset 0 1px 0 #fff;
}

.gx-bubble-btn__icon::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%) rotate(45deg);
    background: #fff;
    border-radius: 2px;
    box-shadow: 2px 2px 0 #c9d8df;
    z-index: -1;
}

.gx-bubble-btn__label {
    flex: 1;
    text-align: center;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    padding-right: 0.35rem;
}

.gx-bubble-btn--cyan {
    --bb-a: #0e7490;
    --bb-b: #22d3ee;
    --bb-edge: #0a5f75;
    --bb-icon: #0891b2;
}

.rx-auth-msg {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.85rem;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.4;
}

.rx-auth-msg.is-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.rx-auth-msg.is-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.rx-auth-msg.hidden {
    display: none;
}

.rx-auth-ref,
.rx-auth-ref-note {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.85rem;
    background: #e4f5f9;
    border: 1px solid rgba(8, 145, 178, 0.16);
    font-size: 0.74rem;
    font-weight: 600;
    color: #3d6b78;
}

.rx-auth-ref strong,
.rx-auth-ref-note strong {
    color: #06b6d4;
}
