:root {
    --r2-wine: #b51243;
    --r2-wine-deep: #73112f;
    --r2-wine-soft: #e45a7f;
    --r2-ink: #17191d;
}

/* Recuperação de acesso: mesmas opções do portal mobile, no tema R2. */
.recovery-methods {
    min-width: 0;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

.recovery-methods legend {
    margin: 0 0 8px 6px;
    padding: 0;
    color: #62545a;
    font-size: 0.68rem;
    font-weight: 700;
}

.recovery-methods__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.recovery-method {
    position: relative;
    min-width: 0;
    min-height: 66px;
    padding: 10px 24px 10px 10px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    overflow: hidden;
    border: 1px solid rgba(115, 17, 47, 0.16);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 245, 248, 0.68));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98), 0 8px 20px rgba(93, 27, 49, 0.06);
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.recovery-method::after {
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 2px;
    border-radius: 999px;
    content: "";
    background: linear-gradient(90deg, #f0819e, #b51243 52%, #73112f);
    box-shadow: 0 0 9px rgba(181, 18, 67, 0.34);
    opacity: 0.18;
    transition: opacity 180ms ease;
}

.recovery-method:hover,
.recovery-method:focus-within,
.recovery-method.is-selected {
    border-color: rgba(181, 18, 67, 0.4);
    box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgba(115, 17, 47, 0.1), 0 0 17px rgba(228, 90, 127, 0.1);
}

.recovery-method:focus-within {
    outline: 3px solid rgba(181, 18, 67, 0.1);
    outline-offset: 2px;
}

.recovery-method.is-selected::after {
    opacity: 1;
}

.recovery-method input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.recovery-method__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(181, 18, 67, 0.12);
    border-radius: 11px;
    color: var(--r2-wine);
    background: rgba(255, 241, 246, 0.76);
}

.recovery-method.is-selected .recovery-method__icon {
    color: #fff;
    background: linear-gradient(145deg, #c4164c, #7b102f);
    box-shadow: 0 7px 16px rgba(115, 17, 47, 0.2);
}

.recovery-method__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recovery-method__copy strong {
    color: #23191d;
    font-size: 0.69rem;
    line-height: 1.2;
}

.recovery-method__copy small {
    overflow: hidden;
    color: #74636a;
    font-size: 0.58rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recovery-method__check {
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--r2-wine);
    font-size: 0.65rem;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 180ms ease, transform 180ms ease;
}

.recovery-method.is-selected .recovery-method__check {
    opacity: 1;
    transform: scale(1);
}

.recovery-panel[hidden] {
    display: none;
}

@media (max-width: 820px) {
    .reset-view .recovery-methods {
        margin-bottom: 11px;
    }

    .reset-view .recovery-method {
        min-height: 58px;
        padding: 8px 20px 8px 8px;
        grid-template-columns: 30px minmax(0, 1fr);
        border-radius: 15px;
    }

    .reset-view .recovery-method__icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 360px) {
    .recovery-methods__grid {
        grid-template-columns: 1fr;
    }
}

.r2-scene {
    display: none;
}

@media (min-width: 821px) {
    html,
    body {
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
        background: #ececef;
    }

    body {
        padding: 0;
        color: var(--r2-ink);
    }

    body::before,
    body::after {
        display: none;
    }

    .aurora-page {
        position: fixed;
        z-index: 0;
        inset: 0;
        width: 100vw;
        height: 100vh;
        min-height: 0;
        overflow: hidden;
        border: 0;
        border-radius: 0;
        background: #ececef url("assets/img/fokus-r2-data-ribbon-background-clean.png") center / 100% 100% no-repeat;
        box-shadow: none;
        transform: none;
        isolation: isolate;
    }

    .aurora-page::before {
        position: absolute;
        z-index: 1;
        inset: 0;
        display: block;
        content: "";
        pointer-events: none;
        background:
            radial-gradient(ellipse 19% 5.5% at 32.5% 79%, rgba(255, 102, 139, 0.3), transparent 68%),
            radial-gradient(ellipse 12% 3.5% at 32.5% 79%, rgba(255, 255, 255, 0.94), transparent 72%);
        opacity: 0.72;
        mix-blend-mode: screen;
        padding: 0;
        border-radius: 0;
        -webkit-mask: none;
        mask: none;
        animation: none;
    }

    .aurora-page::after {
        position: absolute;
        z-index: 3;
        inset: 0;
        display: block;
        content: "";
        pointer-events: none;
        background: url("assets/img/fokus-r2-data-ribbon-background-clean.png") center / 100% 100% no-repeat;
        border-radius: 0;
        opacity: 1;
        filter: none;
        -webkit-mask-image: radial-gradient(ellipse 29% 15% at 13% 10%, #000 0 60%, transparent 100%);
        mask-image: radial-gradient(ellipse 29% 15% at 13% 10%, #000 0 60%, transparent 100%);
    }

    .r2-scene {
        position: absolute;
        z-index: 1;
        inset: 0;
        display: block;
        overflow: hidden;
        pointer-events: none;
    }

    .r2-globe-shell {
        position: absolute;
        z-index: 1;
        top: 5.6%;
        left: 6.9%;
        width: min(48.5vw, 92vh);
        aspect-ratio: 1;
        transform-origin: 53% 56%;
        perspective: 1100px;
        will-change: opacity, transform, filter;
    }

    .r2-globe-shell::before {
        position: absolute;
        z-index: 2;
        inset: 11% 13% 12%;
        content: "";
        pointer-events: none;
        border-radius: 50%;
        background:
            repeating-linear-gradient(92deg, transparent 0 18px, rgba(255, 255, 255, 0.3) 19px, transparent 20px 39px),
            linear-gradient(90deg, transparent 20%, rgba(255, 255, 255, 0.34) 48%, transparent 72%);
        -webkit-mask-image: radial-gradient(circle, transparent 0 57%, #000 61% 64%, transparent 68%);
        mask-image: radial-gradient(circle, transparent 0 57%, #000 61% 64%, transparent 68%);
        mix-blend-mode: screen;
        opacity: 0.2;
        animation: r2-globe-lattice 22s linear 3.2s infinite;
    }

    .r2-globe-shell::after {
        position: absolute;
        z-index: 3;
        top: 48.5%;
        left: 61.6%;
        width: 5.4%;
        aspect-ratio: 1;
        content: "";
        pointer-events: none;
        border-radius: 50%;
        background: radial-gradient(circle, #fff 0 13%, #ff8fab 20%, rgba(255, 78, 122, 0.72) 34%, transparent 72%);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.82), 0 0 22px rgba(255, 75, 121, 0.72);
        transform: translate(-50%, -50%);
        animation: r2-hub-breathe 2.8s ease-in-out 3s infinite;
    }

    .r2-globe {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
        transform-origin: 52% 52%;
        opacity: 1;
        filter: brightness(1.04) saturate(0.76) contrast(0.98);
        will-change: transform, filter;
        animation:
            r2-globe-turn 26s ease-in-out 3.2s infinite alternate,
            r2-globe-breathe 7.2s ease-in-out 3.2s infinite;
    }

    .r2-globe-surface,
    .r2-globe-scan {
        position: absolute;
        pointer-events: none;
        border-radius: 50%;
        mix-blend-mode: screen;
    }

    .r2-globe-surface {
        z-index: 2;
        inset: 13.7% 15.2% 15.1% 13.9%;
        overflow: hidden;
        background:
            repeating-linear-gradient(90deg, transparent 0 9.5%, rgba(255, 255, 255, 0.22) 9.8%, transparent 10.2% 19.5%),
            repeating-linear-gradient(0deg, transparent 0 12%, rgba(255, 150, 176, 0.12) 12.3%, transparent 12.7% 24%);
        -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 67%, rgba(0, 0, 0, 0.74) 74%, transparent 78%);
        mask-image: radial-gradient(circle at 50% 50%, #000 0 67%, rgba(0, 0, 0, 0.74) 74%, transparent 78%);
        opacity: 0.18;
        transform: rotate(-7deg) scaleX(0.96);
        animation: r2-globe-surface-turn 18s linear 3.1s infinite;
    }

    .r2-globe-scan {
        z-index: 3;
        inset: 13.4% 14.8% 14.7% 13.6%;
        overflow: hidden;
        background: linear-gradient(92deg, transparent 29%, rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.48) 50%, rgba(255, 122, 156, 0.12) 58%, transparent 70%);
        -webkit-mask-image: radial-gradient(circle, #000 0 66%, rgba(0, 0, 0, 0.58) 73%, transparent 78%);
        mask-image: radial-gradient(circle, #000 0 66%, rgba(0, 0, 0, 0.58) 73%, transparent 78%);
        opacity: 0.2;
        transform: translateX(-42%) scaleX(0.36);
        animation: r2-globe-light-sweep 8.4s cubic-bezier(0.42, 0, 0.2, 1) 3.6s infinite;
    }

    .r2-ribbon-shell {
        position: absolute;
        z-index: 2;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
        transform-origin: 52% 50%;
        will-change: opacity, transform, clip-path, filter;
    }

    .r2-ribbon {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
        object-fit: fill;
        transform-origin: 54% 48%;
        opacity: 0.88;
        filter:
            saturate(0.82)
            contrast(0.98)
            brightness(1.03)
            drop-shadow(0 0 3px rgba(255, 255, 255, 0.72))
            drop-shadow(0 0 8px rgba(228, 90, 127, 0.2));
        -webkit-mask-image:
            radial-gradient(circle at 57.9% 55.4%, transparent 0 1.45%, #000 2.05%),
            linear-gradient(90deg, transparent 0 27%, rgba(0, 0, 0, 0.18) 31%, #000 37% 100%);
        -webkit-mask-composite: source-in;
        mask-image:
            radial-gradient(circle at 57.9% 55.4%, transparent 0 1.45%, #000 2.05%),
            linear-gradient(90deg, transparent 0 27%, rgba(0, 0, 0, 0.18) 31%, #000 37% 100%);
        mask-composite: intersect;
        will-change: transform, filter, opacity, clip-path;
        animation: r2-ribbon-depth 7.2s ease-in-out 2.1s infinite alternate;
    }

    .r2-ribbon--pulse {
        z-index: 1;
        opacity: 0;
        filter: saturate(1.18) brightness(1.22) drop-shadow(0 0 8px rgba(236, 85, 126, 0.58));
        mix-blend-mode: screen;
        animation: r2-ribbon-pulse 4.6s cubic-bezier(0.42, 0, 0.2, 1) 2.4s infinite;
    }

    .r2-energy-route {
        position: absolute;
        z-index: 3;
        inset: 0;
        width: 100%;
        height: 100%;
        display: none;
        overflow: visible;
        pointer-events: none;
    }

    .r2-energy-route__path {
        fill: none;
        stroke: rgba(255, 113, 151, 0.32);
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-dasharray: 1;
        stroke-dashoffset: 0;
        vector-effect: non-scaling-stroke;
        filter: drop-shadow(0 0 4px rgba(255, 84, 130, 0.48));
    }

    .r2-energy-route__spark {
        fill: none;
        stroke: #ffffff;
        stroke-width: 5;
        stroke-linecap: round;
        stroke-dasharray: 0.018 0.982;
        stroke-dashoffset: 1;
        vector-effect: non-scaling-stroke;
        filter: url(#r2RouteGlow);
        animation: r2-route-pulse 4.4s linear 2.2s infinite both;
    }

    .r2-energy-route__spark--secondary {
        stroke: #ff7197;
        stroke-width: 3.5;
        animation-delay: 4.4s;
    }

    .aurora-hero {
        position: absolute;
        z-index: 0;
        inset: 0;
        min-height: 0;
        background: transparent;
        pointer-events: none;
    }

    .aurora-art,
    .hero-copy,
    .login-brand {
        display: none;
    }

    .auth-panel {
        position: absolute;
        z-index: 4;
        top: 0;
        left: 56.5%;
        width: 39.5%;
        height: 100%;
        min-height: 0;
        padding: 0;
        display: block;
        overflow: visible;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        isolation: isolate;
    }

    .auth-panel::before {
        position: absolute;
        z-index: 0;
        top: 11%;
        right: 0;
        bottom: 8%;
        left: 0;
        display: block;
        content: "";
        pointer-events: none;
        opacity: 0.56;
        border: 1px solid rgba(255, 255, 255, 0.46);
        border-radius: 31% 22% 26% 34% / 18% 23% 29% 22%;
        background:
            radial-gradient(circle at 76% 17%, rgba(255, 255, 255, 0.2), transparent 29%),
            linear-gradient(132deg, rgba(255, 255, 255, 0.12), rgba(246, 239, 242, 0.025) 58%, rgba(255, 255, 255, 0.08));
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.82),
            inset 0 -1px 0 rgba(179, 18, 67, 0.045),
            0 24px 58px rgba(70, 39, 51, 0.045),
            0 0 22px rgba(228, 90, 127, 0.035);
        -webkit-backdrop-filter: blur(7px) saturate(104%);
        backdrop-filter: blur(7px) saturate(104%);
        -webkit-mask: none;
        mask: none;
        transform-origin: 48% 52%;
    }

    .auth-panel::after {
        position: absolute;
        z-index: 7;
        top: 13.2%;
        right: auto;
        left: 8%;
        width: 34%;
        height: 1px;
        display: block;
        content: "";
        pointer-events: none;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), var(--r2-wine-soft), transparent);
        box-shadow: 0 0 14px rgba(228, 90, 127, 0.42);
        opacity: 0.58;
    }

    .auth-view {
        position: absolute;
        z-index: 2;
        inset: 0;
        margin: 0;
    }

    .login-form-view {
        position: absolute;
        inset: 0;
    }

    #formLogin {
        position: absolute;
        z-index: 3;
        top: 31.2%;
        left: 7.6%;
        width: 46.5%;
        height: 50%;
        margin: 0;
        padding: 0;
        isolation: isolate;
    }

    #formLogin::before {
        display: none;
    }

    #formLogin::after {
        display: none;
    }

    #formLogin .field {
        position: relative;
        z-index: 2;
        margin: 0 0 22px;
    }

    #formLogin .field:nth-child(2) {
        margin-bottom: 8px;
    }

    #formLogin .field label {
        height: auto;
        margin: 0 0 8px 2px;
        color: #222429;
        font-family: "Manrope", system-ui, sans-serif;
        font-size: clamp(0.78rem, 0.86vw, 0.96rem);
        font-weight: 600;
        line-height: 1.35;
        user-select: none;
    }

    #formLogin .field-control {
        position: relative;
        height: clamp(40px, 4.45vh, 46px);
        overflow: hidden;
        border: 1px solid rgba(105, 76, 86, 0.16);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.64);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.96),
            inset 0 -1px 0 rgba(179, 18, 67, 0.07),
            0 10px 22px rgba(69, 38, 50, 0.055);
        -webkit-backdrop-filter: blur(16px) saturate(118%);
        backdrop-filter: blur(16px) saturate(118%);
        transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    }

    #formLogin .field-control::after {
        position: absolute;
        right: 16px;
        bottom: 0;
        left: 16px;
        height: 1px;
        content: "";
        pointer-events: none;
        background: linear-gradient(90deg, transparent, rgba(228, 90, 127, 0.72), transparent);
    }

    #formLogin .field:focus-within .field-control {
        border-color: rgba(181, 18, 67, 0.42);
        background: rgba(255, 255, 255, 0.76);
        box-shadow: 0 0 0 3px rgba(181, 18, 67, 0.065), 0 0 24px rgba(228, 90, 127, 0.16);
        transform: translateY(-1px);
    }

    #formLogin .field-input {
        width: 100%;
        height: 100%;
        padding: 0 66px 0 16px;
        border: 0;
        border-radius: inherit;
        color: var(--r2-ink);
        background: transparent;
        box-shadow: none;
        font-family: "Manrope", system-ui, sans-serif;
        font-size: clamp(0.76rem, 0.78vw, 0.9rem);
        font-weight: 600;
        letter-spacing: 0.01em;
    }

    #formLogin .field-input::placeholder {
        color: #8b8d92;
        opacity: 0.86;
    }

    #formLogin .field-input:focus {
        border: 0;
        background: transparent;
        box-shadow: none;
        outline: 0;
    }

    #formLogin .field-input:-webkit-autofill,
    #formLogin .field-input:-webkit-autofill:hover,
    #formLogin .field-input:-webkit-autofill:focus {
        border: 0;
        -webkit-text-fill-color: var(--r2-ink);
        caret-color: var(--r2-ink);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-box-shadow: 0 0 0 1000px transparent inset;
        transition: background-color 99999s ease-out;
    }

    #formLogin .field-icon {
        top: 50%;
        right: 14px;
        left: auto;
        color: #686b71;
        font-size: clamp(0.88rem, 1vw, 1.08rem);
        text-shadow: none;
        transform: translateY(-50%);
    }

    #formLogin .field:nth-child(2) .field-icon {
        right: 46px;
        font-size: clamp(0.82rem, 0.92vw, 1rem);
    }

    #formLogin .field-action {
        top: 50%;
        right: 3px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        color: #686b71;
        background: transparent;
        font-size: 0.92rem;
        transform: translateY(-50%);
    }

    #formLogin .field-action:hover,
    #formLogin .field-action:focus-visible {
        color: var(--r2-wine);
        background: rgba(181, 18, 67, 0.07);
        outline: 2px solid rgba(181, 18, 67, 0.18);
        outline-offset: -2px;
    }

    #formLogin .form-options {
        position: relative;
        z-index: 4;
        width: 100%;
        min-height: 29px;
        margin: 0;
        display: flex;
        align-items: center;
    }

    #formLogin .check-label {
        min-height: 29px;
        margin: 0;
        padding: 0;
        gap: 8px;
        color: #55585e;
        border-radius: 0;
        background: transparent;
        font-size: clamp(0.66rem, 0.69vw, 0.8rem);
        font-weight: 500;
    }

    #formLogin .check-label input {
        width: 17px;
        height: 17px;
        margin: 0;
        display: grid;
        flex: 0 0 17px;
        place-content: center;
        -webkit-appearance: none;
        appearance: none;
        border: 1px solid rgba(115, 17, 47, 0.38);
        border-radius: 3px;
        background: rgba(255, 255, 255, 0.76);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 2px 7px rgba(115, 17, 47, 0.08);
        transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
    }

    #formLogin .check-label input::before {
        width: 8px;
        height: 4px;
        content: "";
        border-bottom: 2px solid #fff;
        border-left: 2px solid #fff;
        transform: translateY(-1px) rotate(-45deg) scale(0);
        transform-origin: center;
        transition: transform 150ms ease;
    }

    #formLogin .check-label input:checked {
        border-color: var(--r2-wine);
        background: linear-gradient(145deg, #d42d5d, var(--r2-wine) 58%, var(--r2-wine-deep));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 0 10px rgba(181, 18, 67, 0.18);
    }

    #formLogin .check-label input:checked::before {
        transform: translateY(-1px) rotate(-45deg) scale(1);
    }

    #formLogin .check-label input:focus-visible {
        outline: 2px solid rgba(181, 18, 67, 0.28);
        outline-offset: 2px;
    }

    #formLogin > .primary-button {
        position: relative;
        z-index: 4;
        width: 100%;
        height: clamp(50px, 5.7vh, 58px);
        margin: 18px 0 0;
        border: 1px solid rgba(115, 17, 47, 0.36);
        border-radius: 999px;
        color: #fff;
        background: linear-gradient(104deg, #c3154b 0%, #b51243 58%, #861135 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.27), 0 10px 22px rgba(115, 17, 47, 0.13);
    }

    #formLogin > .primary-button > img {
        display: none;
    }

    #formLogin > .primary-button > span {
        font-size: clamp(0.72rem, 0.79vw, 0.9rem);
        font-weight: 700;
        letter-spacing: 0.29em;
    }

    #formLogin > .primary-button > i {
        margin-right: 2px;
        font-size: 1.04rem;
    }

    #formLogin > .primary-button:hover,
    #formLogin > .primary-button:focus-visible {
        background: linear-gradient(104deg, #d22b5c 0%, #b51243 58%, #77102f 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 13px 26px rgba(115, 17, 47, 0.2), 0 0 20px rgba(228, 90, 127, 0.24);
        transform: translateY(-2px);
        outline: 0;
    }

    #formLogin > .primary-button:focus-visible {
        outline: 3px solid rgba(181, 18, 67, 0.34);
        outline-offset: 3px;
    }

    #formLogin .account-recovery-button {
        position: absolute;
        z-index: 7;
        top: clamp(105px, 14.6vh, 146px);
        left: 42%;
        width: 130%;
        min-height: clamp(58px, 6.6vh, 66px);
        padding: 0 56px 0 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border: 1.5px solid rgba(255, 224, 233, 0.96);
        border-radius: 999px;
        color: #fff;
        background: linear-gradient(100deg, rgba(226, 80, 119, 0.95), rgba(181, 18, 67, 0.98) 59%, rgba(124, 17, 51, 0.98));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66), inset 0 -7px 15px rgba(83, 3, 29, 0.22), 0 0 0 4px rgba(228, 90, 127, 0.11), 0 0 25px rgba(228, 90, 127, 0.46), 0 13px 30px rgba(115, 17, 47, 0.15);
        font-family: "Manrope", system-ui, sans-serif;
        font-size: clamp(0.8rem, 0.91vw, 1.02rem);
        font-weight: 600;
        letter-spacing: 0;
        white-space: nowrap;
        animation: r2-recovery-glow 3.2s ease-in-out 0.2s infinite;
    }

    #formLogin .account-recovery-button::before {
        position: absolute;
        z-index: 0;
        top: -70%;
        bottom: -70%;
        left: -28%;
        width: 18%;
        content: "";
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent);
        filter: blur(2px);
        transform: skewX(-16deg);
        animation: r2-recovery-scan 3.7s ease-in-out 0.35s infinite;
    }

    #formLogin .account-recovery-button::after {
        display: none;
    }

    #formLogin .account-recovery-button > span,
    #formLogin .account-recovery-button > i {
        position: relative;
        z-index: 1;
        color: #fff;
    }

    #formLogin .account-recovery-button > span {
        background: none;
        -webkit-text-fill-color: currentColor;
    }

    #formLogin .account-recovery-button > i {
        position: absolute;
        right: 28px;
        font-size: 1.1rem;
        transition: transform 180ms ease;
    }

    #formLogin .account-recovery-button:hover,
    #formLogin .account-recovery-button:focus-visible {
        color: #fff;
        background: linear-gradient(100deg, #ee6c91, #c31b50 58%, #911239);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 0 0 5px rgba(228, 90, 127, 0.15), 0 0 34px rgba(228, 90, 127, 0.54), 0 16px 34px rgba(115, 17, 47, 0.18);
        transform: translateY(-2px);
        outline: 0;
    }

    #formLogin .account-recovery-button:hover > i,
    #formLogin .account-recovery-button:focus-visible > i {
        transform: translateX(4px);
    }

    .secure-note {
        position: absolute;
        z-index: 6;
        top: 74.5%;
        left: 29%;
        width: 48%;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        padding: 0;
        border: 0;
        border-radius: 0;
        color: #45484e;
        background: transparent;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        font-size: clamp(0.66rem, 0.74vw, 0.82rem);
        font-weight: 500;
    }

    .secure-note i {
        color: #5e6268;
        font-size: 1.16rem;
    }

    .privacy-note {
        position: absolute;
        z-index: 8;
        right: 13.5%;
        bottom: 4.1%;
        width: 58%;
        margin: 0;
        color: #6d7076;
        font-size: clamp(0.56rem, 0.59vw, 0.68rem);
        line-height: 1.45;
        text-align: center;
    }

    .privacy-note a {
        color: #773042;
        text-decoration-color: rgba(119, 48, 66, 0.44);
        text-underline-offset: 2px;
    }

    .privacy-note a:hover,
    .privacy-note a:focus-visible {
        color: var(--r2-wine);
        outline: 0;
    }

    .alert {
        position: absolute;
        z-index: 10;
        top: 22.6%;
        left: 7.6%;
        width: 46.5%;
        margin: 0;
        border: 1px solid rgba(181, 18, 67, 0.16);
        border-radius: 14px;
        background: rgba(255, 244, 247, 0.91);
        box-shadow: 0 9px 25px rgba(83, 9, 35, 0.11);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        font-size: 0.78rem;
    }

    .alert ~ #formLogin {
        top: 34.6%;
    }

    .reset-view,
    .reset-success-view {
        position: absolute;
        z-index: 6;
        inset: 11% 7% 5% 2.5%;
        padding: clamp(24px, 2.4vw, 40px);
        overflow: auto;
        border: 1px solid rgba(255, 255, 255, 0.78);
        border-radius: 38px;
        background: radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.72), transparent 28%), rgba(249, 246, 247, 0.66);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 28px 64px rgba(62, 40, 49, 0.1), 0 0 28px rgba(228, 90, 127, 0.1);
        -webkit-backdrop-filter: blur(22px) saturate(115%);
        backdrop-filter: blur(22px) saturate(115%);
    }

    .reset-view .back-button,
    .reset-view .auth-kicker,
    .reset-view .security-note i,
    .reset-success-view .reset-success__kicker {
        color: var(--r2-wine);
    }

    .reset-view .field-input {
        border-color: rgba(115, 17, 47, 0.23);
        background: rgba(255, 255, 255, 0.73);
    }

    .reset-view .field-icon {
        color: var(--r2-wine);
    }

    .reset-view .field-input:focus {
        border-color: rgba(181, 18, 67, 0.56);
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 0 0 4px rgba(181, 18, 67, 0.08), 0 14px 30px rgba(115, 17, 47, 0.09);
    }

    .reset-view .primary-button,
    .reset-success__button {
        border-color: rgba(115, 17, 47, 0.28);
        background: linear-gradient(104deg, var(--r2-wine), var(--r2-wine-deep));
    }

    .reset-view .primary-button > img,
    .reset-success__button > img {
        display: none;
    }

    body.r2-entrance .aurora-page::before {
        animation: r2-pedestal-awaken 0.9s ease-out 0.05s both;
    }

    body.r2-entrance .r2-globe-shell {
        animation: r2-globe-materialize 1.7s cubic-bezier(0.18, 0.86, 0.28, 1) 0.3s both;
    }

    body.r2-entrance .r2-globe-surface,
    body.r2-entrance .r2-globe-scan {
        animation: r2-globe-overlay-materialize 1.18s ease-out 0.82s both;
    }

    body.r2-entrance .r2-ribbon-shell {
        animation: r2-ribbon-draw 1.85s cubic-bezier(0.2, 0.78, 0.18, 1) 1.08s both;
    }

    body.r2-entrance .r2-energy-route__path {
        animation: r2-route-draw 2s cubic-bezier(0.18, 0.82, 0.22, 1) 1.15s both;
    }

    body.r2-entrance .auth-panel::before {
        animation: r2-panel-solidify 1.1s cubic-bezier(0.18, 0.84, 0.3, 1) 2.08s both;
    }

    body.r2-entrance .auth-panel::after {
        animation: r2-panel-rail 1.05s cubic-bezier(0.2, 0.78, 0.2, 1) 2.2s both;
    }

    body.r2-entrance #formLogin .field,
    body.r2-entrance #formLogin .form-options,
    body.r2-entrance #formLogin > .primary-button,
    body.r2-entrance #formLogin .account-recovery-button,
    body.r2-entrance .secure-note,
    body.r2-entrance .privacy-note {
        animation: r2-control-materialize 0.62s cubic-bezier(0.2, 0.86, 0.28, 1) both;
    }

    body.r2-entrance #formLogin .field:nth-child(1) { animation-delay: 2.5s; }
    body.r2-entrance #formLogin .field:nth-child(2) { animation-delay: 2.66s; }
    body.r2-entrance #formLogin .form-options { animation-delay: 2.82s; }
    body.r2-entrance #formLogin > .primary-button { animation-delay: 2.98s; }
    body.r2-entrance #formLogin .account-recovery-button { animation-delay: 3.14s; }
    body.r2-entrance .secure-note { animation-delay: 3.3s; }
    body.r2-entrance .privacy-note { animation-delay: 3.4s; }

    body[data-open-reset="1"] .auth-panel::before,
    body[data-reset-success="1"] .auth-panel::before {
        border-radius: 34px;
        background: rgba(249, 246, 247, 0.48);
    }

    body[data-open-reset="1"] .r2-ribbon,
    body[data-reset-success="1"] .r2-ribbon {
        opacity: 0.72;
        filter: saturate(0.92) brightness(1.03);
        animation-play-state: paused;
    }

    body[data-open-reset="1"] .r2-ribbon--pulse,
    body[data-reset-success="1"] .r2-ribbon--pulse {
        opacity: 0;
        animation: none;
    }
}

/* Assinatura FOKUS escolhida na proposta 3: fita de energia R2. */
.r2-brand-signature {
    display: none;
}

@media (min-width: 821px) {
    .r2-brand-signature {
        position: absolute;
        z-index: 6;
        top: 0;
        left: 0;
        width: clamp(410px, 42vw, 600px);
        height: clamp(112px, 8vw, 150px);
        display: block;
        opacity: 0.98;
        object-fit: cover;
        object-position: center 48%;
        mix-blend-mode: multiply;
        pointer-events: none;
        filter: saturate(1.08) contrast(1.035) drop-shadow(0 0 13px rgba(181, 18, 67, 0.12));
        -webkit-mask-image: radial-gradient(ellipse 65% 55% at 45% 48%, #000 62%, rgba(0, 0, 0, 0.78) 76%, transparent 100%);
        mask-image: radial-gradient(ellipse 65% 55% at 45% 48%, #000 62%, rgba(0, 0, 0, 0.78) 76%, transparent 100%);
        animation: r2-brand-energy-pulse 6.4s ease-in-out 2.4s infinite;
    }

    body.r2-entrance .r2-brand-signature {
        animation:
            r2-brand-materialize 1.45s cubic-bezier(0.18, 0.84, 0.26, 1) 0.1s both,
            r2-brand-energy-pulse 6.4s ease-in-out 1.65s infinite;
    }
}

@keyframes r2-brand-materialize {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        transform: translateX(-10px);
        filter: saturate(0.3) brightness(1.2) blur(4px);
    }
    58% {
        opacity: 1;
        filter: saturate(1.08) brightness(1.06) blur(0);
    }
    100% {
        opacity: 0.98;
        clip-path: inset(0 0 0 0);
        transform: translateX(0);
        filter: saturate(1.08) contrast(1.035) drop-shadow(0 0 13px rgba(181, 18, 67, 0.12));
    }
}

@keyframes r2-brand-energy-pulse {
    0%,
    100% {
        filter: saturate(1.04) contrast(1.025) drop-shadow(0 0 10px rgba(181, 18, 67, 0.09));
    }
    50% {
        filter: saturate(1.18) contrast(1.04) brightness(1.015) drop-shadow(0 0 18px rgba(228, 90, 127, 0.2));
    }
}

@media (prefers-reduced-motion: reduce) {
    .r2-brand-signature,
    body.r2-entrance .r2-brand-signature {
        animation: none !important;
    }
}

@media (min-width: 821px) and (max-aspect-ratio: 16 / 10) {
    .r2-globe-shell {
        top: 11%;
        left: 3.5%;
        width: 53%;
    }

    .auth-panel {
        left: 55.5%;
        width: 44.5%;
    }

    #formLogin {
        left: 7.5%;
        width: 48%;
    }

    #formLogin .account-recovery-button {
        width: 126%;
    }
}

@media (min-width: 821px) and (max-height: 700px) {
    #formLogin { top: 27.5%; }
    #formLogin .field { margin-bottom: 14px; }
    #formLogin .field:nth-child(2) { margin-bottom: 8px; }
    #formLogin .account-recovery-button { top: 104px; }
    .secure-note { top: 84.5%; }
}

@media (min-width: 821px) and (min-height: 701px) and (max-height: 800px) {
    #formLogin .account-recovery-button { top: 112px; }
    .secure-note { top: 78%; }
}

@keyframes r2-globe-materialize {
    0% {
        opacity: 0;
        filter: blur(18px) brightness(1.46);
        clip-path: circle(0 at 50% 88%);
        transform: translate3d(0, 5%, 0) scale(0.82);
    }
    52% {
        opacity: 0.86;
        filter: blur(4px) brightness(1.24);
        clip-path: circle(42% at 50% 66%);
    }
    100% {
        opacity: 1;
        filter: blur(0) brightness(1);
        clip-path: circle(76% at 50% 50%);
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes r2-globe-turn {
    0% { transform: perspective(1500px) rotateY(-5.2deg) rotateX(0.5deg) rotateZ(-0.22deg) scale(0.994); }
    50% { transform: perspective(1500px) rotateY(0deg) rotateX(-0.45deg) rotateZ(0.12deg) scale(1.004); }
    100% { transform: perspective(1500px) rotateY(5.2deg) rotateX(0.5deg) rotateZ(0.22deg) scale(0.995); }
}

@keyframes r2-globe-surface-turn {
    0% { background-position: -110px 0, 0 -24px; transform: rotate(-7deg) scaleX(0.94); opacity: 0.12; }
    50% { opacity: 0.24; }
    100% { background-position: 110px 0, 0 24px; transform: rotate(-7deg) scaleX(1.01); opacity: 0.12; }
}

@keyframes r2-globe-light-sweep {
    0%, 10% { opacity: 0; transform: translateX(-44%) scaleX(0.28); }
    24% { opacity: 0.25; }
    68% { opacity: 0.16; }
    82%, 100% { opacity: 0; transform: translateX(44%) scaleX(0.28); }
}

@keyframes r2-globe-overlay-materialize {
    0% { opacity: 0; filter: blur(8px); transform: scale(0.7) rotate(-10deg); }
    55% { opacity: 0.42; filter: blur(2px); }
    100% { opacity: 0.2; filter: blur(0); transform: scale(1) rotate(-7deg); }
}

@keyframes r2-globe-breathe {
    0%, 100% { filter: brightness(1.02) saturate(0.74) contrast(0.98); }
    50% { filter: brightness(1.09) saturate(0.82) contrast(1) drop-shadow(0 0 14px rgba(228, 90, 127, 0.2)); }
}

@keyframes r2-ribbon-draw {
    0% {
        opacity: 0;
        filter: blur(10px) brightness(1.35);
        clip-path: inset(0 68% 0 32%);
        transform: translate3d(-1%, 0.4%, 0) scale(0.992);
    }
    58% {
        opacity: 0.92;
        filter: blur(1.5px) brightness(1.16);
        clip-path: inset(0 31% 0 32%);
    }
    100% {
        opacity: 1;
        filter: blur(0) brightness(1);
        clip-path: inset(0 0 0 32%);
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes r2-ribbon-depth {
    0% {
        transform: perspective(1500px) translate3d(-0.12%, 0.1%, 0) rotateX(0.1deg) rotateY(-0.18deg) scale(1.001);
        filter:
            saturate(1.01)
            contrast(1.02)
            brightness(1.01)
            drop-shadow(0 0 4px rgba(255, 255, 255, 0.56))
            drop-shadow(0 0 7px rgba(228, 90, 127, 0.22));
    }
    100% {
        transform: perspective(1500px) translate3d(0.14%, -0.1%, 15px) rotateX(-0.12deg) rotateY(0.18deg) scale(1.004);
        filter:
            saturate(1.1)
            contrast(1.03)
            brightness(1.05)
            drop-shadow(0 0 5px rgba(255, 255, 255, 0.62))
            drop-shadow(0 0 10px rgba(228, 90, 127, 0.3));
    }
}

@keyframes r2-ribbon-pulse {
    0%, 8% { opacity: 0; clip-path: inset(0 94% 0 0); }
    16% { opacity: 0.26; }
    72% { opacity: 0.16; }
    88%, 100% { opacity: 0; clip-path: inset(0 0 0 94%); }
}

@keyframes r2-pedestal-awaken {
    0% { opacity: 0; filter: blur(18px); transform: scaleX(0.32); }
    58% { opacity: 1; filter: blur(2px); }
    100% { opacity: 0.72; filter: blur(0); transform: scaleX(1); }
}

@keyframes r2-globe-lattice {
    0% { transform: rotateY(-8deg) rotateZ(0deg); opacity: 0.12; }
    50% { opacity: 0.24; }
    100% { transform: rotateY(8deg) rotateZ(360deg); opacity: 0.12; }
}

@keyframes r2-hub-breathe {
    0%, 100% { opacity: 0.62; transform: translate(-50%, -50%) scale(0.82); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.14); }
}

@keyframes r2-route-draw {
    0% { opacity: 0; stroke-dashoffset: 1; }
    24% { opacity: 0.9; }
    100% { opacity: 1; stroke-dashoffset: 0; }
}

@keyframes r2-route-pulse {
    0% { opacity: 0; stroke-dashoffset: 1; }
    8% { opacity: 1; }
    82% { opacity: 0.92; }
    100% { opacity: 0; stroke-dashoffset: 0; }
}

@keyframes r2-panel-solidify {
    0% {
        opacity: 0;
        filter: blur(18px) brightness(1.4);
        clip-path: inset(48% 46% 48% 46% round 46%);
        transform: perspective(950px) rotateY(14deg) translateX(8%) scale(0.9);
    }
    62% { opacity: 0.84; filter: blur(2px) brightness(1.12); }
    100% {
        opacity: 1;
        filter: blur(0) brightness(1);
        clip-path: inset(0 round 0);
        transform: perspective(950px) rotateY(0) translateX(0) scale(1);
    }
}

@keyframes r2-panel-rail {
    0% { opacity: 0; transform: translateX(-160%) scaleX(0.12); }
    100% { opacity: 0.72; transform: translateX(0) scaleX(1); }
}

@keyframes r2-control-materialize {
    0% {
        opacity: 0;
        filter: blur(10px) brightness(1.28);
        transform: translate3d(18px, 7px, 0) scaleX(0.86);
    }
    100% {
        opacity: 1;
        filter: blur(0) brightness(1);
        transform: translate3d(0, 0, 0) scaleX(1);
    }
}

@keyframes r2-recovery-glow {
    0%, 100% { filter: brightness(0.98); }
    50% { filter: brightness(1.09) drop-shadow(0 0 8px rgba(228, 90, 127, 0.28)); }
}

@keyframes r2-recovery-scan {
    0%, 18% { left: -28%; opacity: 0; }
    28% { opacity: 0.9; }
    68% { opacity: 0.74; }
    82%, 100% { left: 112%; opacity: 0; }
}

/* Tema R2 leve: globo em movimento e painel 2D futurista. */
@media (min-width: 821px) {
    .aurora-page {
        background-color: #f2f2f4;
        background-position: center;
        background-size: 100% 100%;
    }

    .aurora-page::before {
        background: rgba(255, 255, 255, 0.08);
        opacity: 1;
        mix-blend-mode: normal;
    }

    .aurora-page::after,
    .r2-ribbon-shell,
    .r2-energy-route {
        display: none;
    }

    .r2-globe-shell {
        top: 8%;
        left: 6%;
        width: min(46vw, 82vh);
        perspective: 1500px;
        filter: drop-shadow(0 18px 34px rgba(79, 43, 55, 0.08));
    }

    .r2-globe {
        opacity: 0.84;
        filter: brightness(1.08) saturate(0.6) contrast(0.96);
        -webkit-mask-image: radial-gradient(circle at 50% 43%, #000 0 39%, rgba(0, 0, 0, 0.92) 41%, transparent 43%);
        mask-image: radial-gradient(circle at 50% 43%, #000 0 39%, rgba(0, 0, 0, 0.92) 41%, transparent 43%);
        animation:
            r2-globe-turn-light 18s ease-in-out 1.9s infinite alternate,
            r2-globe-breathe-light 6.8s ease-in-out 1.9s infinite;
    }

    .r2-globe-shell::before {
        inset: 15% 16% 18% 15%;
        opacity: 0.12;
        animation: r2-globe-lattice 28s linear 1.9s infinite;
    }

    .r2-globe-shell::after {
        top: 49.2%;
        left: 61.8%;
        width: 3.4%;
        opacity: 0.68;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.78), 0 0 14px rgba(181, 18, 67, 0.34);
    }

    .r2-globe-surface {
        inset: 15% 16% 18% 15%;
        opacity: 0.13;
        animation: r2-globe-surface-turn 15s linear 1.9s infinite;
    }

    .r2-globe-scan {
        inset: 15% 16% 18% 15%;
        opacity: 0.1;
        animation: r2-globe-light-sweep 9s cubic-bezier(0.42, 0, 0.2, 1) 2.2s infinite;
    }

    .auth-panel {
        top: 16%;
        right: 5.5%;
        left: auto;
        width: 34.5%;
        height: 68%;
        overflow: visible;
    }

    .auth-panel::before {
        inset: 0;
        opacity: 1;
        border: 1px solid rgba(181, 18, 67, 0.18);
        border-radius: 24px;
        background: rgba(250, 249, 250, 0.58);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.9),
            0 16px 42px rgba(68, 41, 51, 0.075);
        -webkit-backdrop-filter: blur(14px) saturate(108%);
        backdrop-filter: blur(14px) saturate(108%);
        transform: none;
    }

    .auth-panel::after {
        z-index: 8;
        top: 0;
        left: 20%;
        width: 60%;
        height: 2px;
        opacity: 0.72;
        background: linear-gradient(90deg, transparent, var(--r2-wine-soft), var(--r2-wine), var(--r2-wine-soft), transparent);
        box-shadow: 0 0 12px rgba(181, 18, 67, 0.22);
    }

    #loginFormView > .sr-only {
        position: absolute !important;
        top: 8.5%;
        left: 9%;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        clip: auto !important;
        white-space: normal !important;
        color: var(--r2-wine-deep);
        font-family: "Space Grotesk", "Manrope", sans-serif;
        font-size: clamp(0.72rem, 0.76vw, 0.88rem);
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
    }

    #formLogin {
        top: 20%;
        left: 9%;
        width: 82%;
        height: auto;
    }

    #formLogin .field {
        margin-bottom: 18px;
    }

    #formLogin .field:nth-child(2) {
        margin-bottom: 14px;
    }

    #formLogin .field label {
        margin: 0 0 7px 2px;
        color: #34363b;
        font-size: clamp(0.76rem, 0.78vw, 0.9rem);
        font-weight: 600;
    }

    #formLogin .field-control {
        height: clamp(46px, 5.2vh, 54px);
        border-color: rgba(71, 59, 64, 0.14);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.76);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }

    #formLogin .field-control::after {
        right: 12px;
        left: 12px;
        opacity: 0.46;
    }

    #formLogin .field:focus-within .field-control {
        border-color: rgba(181, 18, 67, 0.38);
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 0 0 3px rgba(181, 18, 67, 0.055);
        transform: none;
    }

    #formLogin .form-options {
        min-height: 38px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    #formLogin .check-label {
        flex: 0 0 auto;
        font-size: clamp(0.64rem, 0.68vw, 0.78rem);
    }

    #formLogin .account-recovery-button {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        min-height: 36px;
        padding: 0 36px 0 16px;
        border: 1px solid rgba(181, 18, 67, 0.2);
        border-radius: 10px;
        color: var(--r2-wine-deep);
        background: rgba(181, 18, 67, 0.045);
        box-shadow: none;
        font-size: clamp(0.66rem, 0.7vw, 0.8rem);
        animation: none;
    }

    #formLogin .account-recovery-button::before,
    #formLogin .account-recovery-button::after {
        display: none;
    }

    #formLogin .account-recovery-button > span,
    #formLogin .account-recovery-button > i {
        color: var(--r2-wine-deep);
    }

    #formLogin .account-recovery-button > i {
        right: 14px;
        font-size: 0.8rem;
    }

    #formLogin .account-recovery-button:hover,
    #formLogin .account-recovery-button:focus-visible {
        color: var(--r2-wine-deep);
        border-color: rgba(181, 18, 67, 0.36);
        background: rgba(181, 18, 67, 0.085);
        box-shadow: 0 0 0 3px rgba(181, 18, 67, 0.055);
        transform: none;
    }

    #formLogin > .primary-button {
        height: clamp(48px, 5.5vh, 54px);
        margin-top: 16px;
        border: 1px solid rgba(115, 17, 47, 0.28);
        border-radius: 14px;
        background: linear-gradient(102deg, #c4164c, #a7123e 68%, #7b102f);
        box-shadow: 0 8px 18px rgba(115, 17, 47, 0.12);
    }

    #formLogin > .primary-button:hover,
    #formLogin > .primary-button:focus-visible {
        background: linear-gradient(102deg, #cd2457, #a7123e 68%, #71102c);
        box-shadow: 0 10px 22px rgba(115, 17, 47, 0.16);
        transform: translateY(-1px);
    }

    .secure-note {
        top: auto;
        bottom: 9%;
        left: 26%;
        width: 48%;
        gap: 7px;
        color: #666970;
        font-size: clamp(0.62rem, 0.66vw, 0.76rem);
    }

    .secure-note i {
        color: var(--r2-wine);
        font-size: 0.9rem;
    }

    .privacy-note {
        right: 9%;
        bottom: 2.5%;
        width: 82%;
        color: #777a80;
        font-size: clamp(0.52rem, 0.56vw, 0.64rem);
    }

    .alert {
        top: 8%;
        left: 9%;
        width: 82%;
    }

    .alert ~ #formLogin {
        top: 25%;
    }

    .reset-view,
    .reset-success-view {
        inset: 5%;
        border-radius: 18px;
        background: rgba(251, 250, 250, 0.9);
        box-shadow: none;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    body.r2-entrance .r2-globe-shell {
        animation: r2-flat-globe-in 1.2s cubic-bezier(0.2, 0.82, 0.24, 1) 0.08s both;
    }

    body.r2-entrance .auth-panel::before {
        animation: r2-flat-panel-in 0.72s ease-out 0.72s both;
    }

    body.r2-entrance .auth-panel::after {
        animation: r2-flat-line-in 0.65s ease-out 0.94s both;
    }

    body.r2-entrance #formLogin .field,
    body.r2-entrance #formLogin .form-options,
    body.r2-entrance #formLogin > .primary-button,
    body.r2-entrance #formLogin .account-recovery-button,
    body.r2-entrance .secure-note,
    body.r2-entrance .privacy-note {
        animation: r2-flat-control-in 0.44s ease-out both;
    }

    body.r2-entrance #formLogin .field:nth-child(1) { animation-delay: 1.05s; }
    body.r2-entrance #formLogin .field:nth-child(2) { animation-delay: 1.18s; }
    body.r2-entrance #formLogin .form-options { animation-delay: 1.31s; }
    body.r2-entrance #formLogin .account-recovery-button { animation-delay: 1.31s; }
    body.r2-entrance #formLogin > .primary-button { animation-delay: 1.44s; }
    body.r2-entrance .secure-note { animation-delay: 1.57s; }
    body.r2-entrance .privacy-note { animation-delay: 1.66s; }

    body[data-open-reset="1"] .auth-panel::before,
    body[data-reset-success="1"] .auth-panel::before {
        border-radius: 24px;
        background: rgba(250, 249, 250, 0.78);
    }
}

@media (min-width: 821px) and (max-height: 700px) {
    .auth-panel {
        top: 9%;
        height: 82%;
    }

    #formLogin {
        top: 20%;
    }

    #formLogin .field {
        margin-bottom: 12px;
    }

    #formLogin .field:nth-child(2) {
        margin-bottom: 10px;
    }

    .secure-note {
        bottom: 7%;
    }

    .privacy-note {
        bottom: 1.5%;
    }
}

@media (min-width: 821px) and (max-aspect-ratio: 16 / 10) {
    .r2-globe-shell {
        top: 16%;
        left: 1%;
        width: min(49vw, 68vh);
    }

    .auth-panel {
        right: 3.5%;
        width: 42%;
    }
}

@keyframes r2-globe-turn-light {
    0% { transform: perspective(1600px) rotateY(-7deg) rotateX(0.8deg) scale(0.99); }
    50% { transform: perspective(1600px) rotateY(0deg) rotateX(-0.5deg) scale(1.004); }
    100% { transform: perspective(1600px) rotateY(7deg) rotateX(0.8deg) scale(0.99); }
}

@keyframes r2-globe-breathe-light {
    0%, 100% { filter: brightness(1.05) saturate(0.56) contrast(0.96); }
    50% { filter: brightness(1.12) saturate(0.64) contrast(0.98); }
}

@keyframes r2-flat-globe-in {
    0% { opacity: 0; transform: translateY(14px) scale(0.94); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes r2-flat-panel-in {
    0% { opacity: 0; transform: translateX(18px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes r2-flat-line-in {
    0% { opacity: 0; transform: scaleX(0.15); }
    100% { opacity: 0.72; transform: scaleX(1); }
}

@keyframes r2-flat-control-in {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

body.r2-scene-paused .r2-globe,
body.r2-scene-paused .r2-ribbon,
body.r2-scene-paused .r2-ribbon--pulse,
body.r2-scene-paused .r2-globe-shell::before,
body.r2-scene-paused .r2-globe-shell::after,
body.r2-scene-paused .r2-globe-surface,
body.r2-scene-paused .r2-globe-scan,
body.r2-scene-paused .r2-energy-route__spark,
body.r2-scene-paused #openReset {
    animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
    .aurora-page::before,
    .r2-globe,
    .r2-ribbon,
    .r2-ribbon--pulse,
    .r2-globe-shell,
    .r2-globe-shell::before,
    .r2-globe-shell::after,
    .r2-globe-surface,
    .r2-globe-scan,
    .r2-ribbon-shell,
    .r2-energy-route__path,
    .auth-panel::before,
    .auth-panel::after,
    #formLogin .field,
    #formLogin .form-options,
    #formLogin > .primary-button,
    #formLogin .account-recovery-button,
    .secure-note,
    .privacy-note {
        animation: none !important;
        opacity: 1;
        filter: none;
        clip-path: none;
        transform: none;
    }

    .r2-energy-route__spark {
        display: none;
    }
}

/* Proposta 1: nucleo orbital central no lado esquerdo. */
@media (min-width: 821px) {
    .r2-globe-shell {
        top: 7.3%;
        left: 32.2%;
        width: min(47vw, 84.5vh);
        translate: -50% 0;
        filter: drop-shadow(0 16px 28px rgba(75, 45, 55, 0.08));
    }

    .r2-globe-shell::before,
    .r2-globe-shell::after,
    .r2-globe-surface,
    .r2-globe-scan {
        display: none;
    }

    .r2-globe {
        opacity: 0.9;
        filter: brightness(1.06) saturate(0.72) contrast(0.97);
        -webkit-mask-image: none;
        mask-image: none;
        animation:
            r2-globe-turn-light 18s ease-in-out 1.9s infinite alternate,
            r2-globe-breathe-light 6.8s ease-in-out 1.9s infinite;
    }

    .aurora-hero {
        z-index: 2;
        display: block;
    }

    .hero-copy {
        position: absolute;
        top: auto;
        right: auto;
        bottom: 22.2%;
        left: 2.3%;
        width: 45%;
        max-width: none;
        display: block;
        margin: 0;
        padding: 0;
        color: #111318;
        text-align: left;
        transform: none;
        pointer-events: none;
    }

    .hero-copy::after,
    .hero-copy > span {
        display: none;
    }

    .hero-copy h1 {
        margin: 0;
        color: #111318;
        background: none;
        background-clip: border-box;
        -webkit-background-clip: border-box;
        -webkit-text-fill-color: currentColor;
        font-family: "Manrope", sans-serif;
        font-size: clamp(28px, 5.3vh, 50px);
        font-weight: 700;
        line-height: 0.96;
        letter-spacing: -0.055em;
        text-shadow: none;
        filter: none;
    }

    .hero-copy .hero-accent,
    .hero-copy .hero-period {
        color: var(--r2-wine);
        -webkit-text-fill-color: currentColor;
        font-style: normal;
    }

    body.r2-entrance .hero-copy {
        animation: r2-flat-copy-in 0.65s ease-out 1.24s both;
    }
}

@keyframes r2-flat-copy-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-copy .hero-accent,
.hero-copy .hero-period {
    font-style: normal;
}

@media (min-width: 821px) {
    .reset-view {
        inset: 5% 7% 5% 2.5%;
        padding: clamp(18px, 1.55vw, 26px);
    }

    .reset-view .back-button {
        margin-bottom: 6px;
        font-size: 0.68rem;
    }

    .reset-view .auth-kicker {
        margin-bottom: 2px;
        font-size: 0.58rem;
    }

    .reset-view .auth-title {
        font-size: clamp(1.35rem, 1.7vw, 1.72rem);
    }

    .reset-view .auth-description {
        margin: 3px 0 9px;
        font-size: 0.7rem;
        line-height: 1.35;
    }

    .reset-view .alert {
        position: static;
        width: auto;
        margin: 0 0 8px;
        font-size: 0.68rem;
    }

    .reset-view .recovery-methods {
        margin-bottom: 9px;
    }

    .reset-view .recovery-methods legend {
        margin-bottom: 5px;
        font-size: 0.58rem;
    }

    .reset-view .recovery-methods__grid {
        gap: 7px;
    }

    .reset-view .recovery-method {
        min-height: 49px;
        padding: 6px 18px 6px 7px;
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 7px;
        border-radius: 13px;
    }

    .reset-view .recovery-method__icon {
        width: 28px;
        height: 28px;
        border-radius: 9px;
        font-size: 0.72rem;
    }

    .reset-view .recovery-method__copy strong {
        font-size: 0.61rem;
    }

    .reset-view .recovery-method__copy small {
        font-size: 0.51rem;
    }

    .reset-view .field {
        margin-bottom: 8px;
    }

    .reset-view .field label {
        margin-bottom: 4px;
        font-size: 0.68rem;
    }

    .reset-view .field-input {
        height: 42px;
        font-size: 0.75rem;
    }

    .reset-view .primary-button {
        height: 44px;
        margin-top: 1px;
    }

    .reset-view .security-note {
        margin-top: 7px;
        font-size: 0.56rem;
        line-height: 1.35;
    }
}
