/* ========================================== */
/* DESAFOGA.CLOUD — PÁGINA DE CADASTRO        */
/* Arquivo sugerido: assets/css/cadastro.css   */
/* ========================================== */

:root {
    --brand-primary: #04ADCA;
    --brand-primary-rgb: 4, 173, 202;
    --brand-dark: #047f95;
    --brand-deep: #07576b;
    --brand-soft: #e6f9fc;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --surface: #ffffff;
    --surface-soft: #f4fbff;
    --line: rgba(226, 232, 240, 0.92);

    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--surface-soft);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

button,
input,
a {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

img,
svg {
    max-width: 100%;
}

.signup-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.signup-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 10%, rgba(var(--brand-primary-rgb), 0.16), transparent 34%),
        radial-gradient(circle at 86% 16%, rgba(var(--brand-primary-rgb), 0.14), transparent 36%),
        linear-gradient(180deg, #f4fbff 0%, #eaf7fd 100%);
}

.signup-bg span {
    position: absolute;
    display: block;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    filter: blur(70px);
    animation: signupCloudFloat 18s ease-in-out infinite alternate;
}

.signup-bg span:nth-child(1) {
    width: 520px;
    height: 180px;
    left: -120px;
    top: 10%;
}

.signup-bg span:nth-child(2) {
    width: 620px;
    height: 220px;
    right: -140px;
    top: 18%;
    animation-delay: -5s;
}

.signup-bg span:nth-child(3) {
    width: 760px;
    height: 240px;
    left: 24%;
    bottom: -120px;
    opacity: 0.55;
    animation-delay: -9s;
}

@keyframes signupCloudFloat {
    from {
        transform: translate3d(-16px, 10px, 0) scale(1);
    }

    to {
        transform: translate3d(22px, -14px, 0) scale(1.04);
    }
}

.signup-layout {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(560px, 0.92fr) minmax(520px, 1.08fr);
}

/* ========================================== */
/* COLUNA FORM                                 */
/* ========================================== */

.signup-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 34px clamp(34px, 4vw, 68px);
    background: rgba(255, 255, 255, 0.74);
    border-right: 1px solid rgba(226, 232, 240, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.signup-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.signup-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.signup-logo img {
    width: 176px;
    height: auto;
    display: block;
}

.signup-cancel {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--brand-deep);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.18);
    font-size: 0.86rem;
    line-height: 1;
    font-weight: 850;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.signup-cancel:hover {
    color: var(--brand-primary);
    background: #ffffff;
    border-color: rgba(var(--brand-primary-rgb), 0.28);
}

.signup-card {
    width: min(100%, 560px);
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.signup-progress {
    margin-bottom: 42px;
}

.signup-progress-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.signup-progress-labels span {
    color: rgba(71, 85, 105, 0.62);
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 240ms ease;
}

.signup-progress-labels span.is-active,
.signup-progress-labels span.is-done {
    color: var(--brand-primary);
}

.signup-progress-bars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.signup-progress-bars i {
    height: 6px;
    display: block;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    overflow: hidden;
    transition: background 280ms ease;
}

.signup-progress-bars i.is-active,
.signup-progress-bars i.is-done {
    background: var(--brand-primary);
    box-shadow: 0 10px 20px rgba(var(--brand-primary-rgb), 0.16);
}

.signup-step {
    animation: stepIn 360ms var(--ease-out-expo) both;
}

.signup-step[hidden] {
    display: none !important;
}

@keyframes stepIn {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(10px) scale(0.99);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

.signup-step-header {
    margin-bottom: 34px;
}

.signup-step-header.is-centered {
    text-align: center;
}

.signup-kicker {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0 13px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: var(--brand-primary);
    background: rgba(var(--brand-primary-rgb), 0.08);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.22);
    font-size: 0.76rem;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -0.025em;
}

.signup-step-header h1,
.success-card h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2.2rem, 4vw, 3.55rem);
    line-height: 0.98;
    font-weight: 850;
    letter-spacing: -0.075em;
}

.signup-step-header h1 span,
.success-card h1 span {
    display: block;
    color: var(--brand-primary);
}

.signup-step-header p,
.success-card p {
    max-width: 500px;
    margin: 22px 0 0;
    color: rgba(71, 85, 105, 0.78);
    font-size: 1rem;
    line-height: 1.72;
    font-weight: 500;
    letter-spacing: -0.018em;
}

.signup-step-header.is-centered p {
    margin-left: auto;
    margin-right: auto;
}

/* ========================================== */
/* FORMULÁRIO                                  */
/* ========================================== */

.signup-form {
    display: grid;
    gap: 26px;
}

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

.field {
    min-width: 0;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    margin-bottom: 9px;
    color: rgba(71, 85, 105, 0.78);
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.field-control {
    position: relative;
}

.field-control svg {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 21px;
    height: 21px;
    transform: translateY(-50%);
    fill: none;
    stroke: rgba(71, 85, 105, 0.60);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke 220ms ease;
}

.field-control input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px 0 50px;
    border-radius: 16px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(203, 213, 225, 0.92);
    outline: 0;
    font-size: 0.94rem;
    line-height: 1;
    font-weight: 650;
    letter-spacing: -0.018em;
    box-shadow: 0 1px 2px rgba(4, 30, 51, 0.03);
    transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.field-control input::placeholder {
    color: rgba(100, 116, 139, 0.58);
}

.field-control input:focus {
    background: #ffffff;
    border-color: rgba(var(--brand-primary-rgb), 0.56);
    box-shadow:
        0 0 0 4px rgba(var(--brand-primary-rgb), 0.10),
        0 16px 34px rgba(4, 30, 51, 0.06);
}

.field-control:focus-within svg {
    stroke: var(--brand-primary);
}

.field.has-error .field-control input {
    border-color: rgba(239, 68, 68, 0.76);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.field-error,
.mfa-error {
    display: none;
    margin: 9px 0 0;
    color: var(--danger);
    font-size: 0.78rem;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: -0.018em;
}

.field.has-error .field-error,
.mfa-error.is-visible {
    display: block;
}

.signup-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.signup-alert[hidden] {
    display: none !important;
}

.signup-alert-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: var(--danger);
    font-weight: 950;
}

.signup-alert strong {
    display: block;
    color: #991b1b;
    font-size: 0.94rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.signup-alert p {
    margin: 6px 0 0;
    color: rgba(127, 29, 29, 0.78);
    font-size: 0.88rem;
    line-height: 1.52;
    font-weight: 600;
}

.signup-alert small {
    display: block;
    margin-top: 8px;
    color: rgba(127, 29, 29, 0.62);
    font-size: 0.78rem;
    line-height: 1.4;
    font-weight: 700;
}

.signup-alert small[hidden] {
    display: none !important;
}

.signup-button {
    min-height: 54px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--brand-primary);
    cursor: pointer;
    font-size: 0.94rem;
    line-height: 1;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -0.022em;
    box-shadow: 0 18px 38px rgba(var(--brand-primary-rgb), 0.22);
    transition: background 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.signup-button:hover {
    background: var(--brand-dark);
    box-shadow: 0 22px 46px rgba(var(--brand-primary-rgb), 0.28);
}

.signup-button:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.signup-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.signup-terms {
    margin: -8px 0 0;
    color: rgba(71, 85, 105, 0.68);
    font-size: 0.78rem;
    line-height: 1.55;
    text-align: center;
    font-weight: 600;
}

.signup-terms button {
    padding: 0;
    border: 0;
    color: var(--brand-primary);
    background: transparent;
    cursor: pointer;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ========================================== */
/* LOADING                                     */
/* ========================================== */

.signup-loading {
    min-height: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.desafoga-loader {
    position: relative;
    width: 150px;
    height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    isolation: isolate;
}

.loader-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 17px;
    height: 17px;
    margin-left: -8.5px;
    margin-top: -8.5px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 28% 24%, #ffffff 0%, rgba(255, 255, 255, 0.92) 12%, transparent 26%),
        radial-gradient(circle at 34% 34%, #8ff3ff 0%, var(--brand-primary) 42%, var(--brand-dark) 100%);
    box-shadow:
        0 0 14px rgba(var(--brand-primary-rgb), 0.92),
        0 0 38px rgba(var(--brand-primary-rgb), 0.46);
}

.loader-orbit-one {
    z-index: 5;
    animation: loaderFront 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.loader-orbit-two {
    z-index: 1;
    opacity: 0.42;
    filter: blur(1.5px);
    animation: loaderBack 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.loader-logo-mark {
    position: relative;
    z-index: 3;
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(var(--brand-primary-rgb), 0.16);
    box-shadow:
        0 26px 54px rgba(4, 30, 51, 0.14),
        0 1px 0 rgba(255, 255, 255, 0.70) inset;
    animation: loaderLogoPulse 2.2s ease-in-out infinite;
}

.loader-logo-mark img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.loader-logo-mark strong {
    display: none;
    color: var(--brand-primary);
    font-size: 2rem;
    line-height: 1;
    font-weight: 950;
}

.loader-logo-mark.is-fallback img {
    display: none;
}

.loader-logo-mark.is-fallback strong {
    display: block;
}

@keyframes loaderFront {
    0% {
        transform: translateX(-66px) scale(0.86);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    48% {
        transform: translateX(66px) scale(1);
        opacity: 1;
    }

    56%,
    100% {
        transform: translateX(66px) scale(0.82);
        opacity: 0;
    }
}

@keyframes loaderBack {
    0%,
    52% {
        transform: translateX(66px) scale(0.74);
        opacity: 0;
    }

    62% {
        opacity: 0.42;
    }

    100% {
        transform: translateX(-66px) scale(0.74);
        opacity: 0;
    }
}

@keyframes loaderLogoPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.025);
    }
}

.signup-loading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.72rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.signup-loading p {
    margin: 12px 0 0;
    color: rgba(71, 85, 105, 0.72);
    font-size: 0.96rem;
    line-height: 1.55;
    font-weight: 600;
}

/* ========================================== */
/* MFA                                         */
/* ========================================== */

.signup-back-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 26px;
    padding: 0;
    border: 0;
    color: rgba(71, 85, 105, 0.72);
    background: transparent;
    cursor: pointer;
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 220ms ease;
}

.signup-back-button:hover {
    color: var(--brand-primary);
}

.signup-back-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mail-icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    border-radius: 22px;
    color: var(--brand-primary);
    background: rgba(var(--brand-primary-rgb), 0.10);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.18);
}

.mail-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mfa-form {
    display: grid;
    gap: 24px;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.otp-inputs input {
    width: 56px;
    height: 64px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 18px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    outline: 0;
    text-align: center;
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 1px 2px rgba(4, 30, 51, 0.03);
    transition: border-color 220ms ease, box-shadow 220ms ease;
}

.otp-inputs input:focus {
    border-color: rgba(var(--brand-primary-rgb), 0.62);
    box-shadow: 0 0 0 4px rgba(var(--brand-primary-rgb), 0.10);
}

.otp-inputs.is-error input {
    border-color: rgba(239, 68, 68, 0.74);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.mfa-error {
    margin: -12px 0 0;
    text-align: center;
}

.otp-inputs.is-shaking {
    animation: shake 0.48s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

.resend-box {
    min-height: 24px;
    color: rgba(71, 85, 105, 0.72);
    font-size: 0.88rem;
    line-height: 1;
    font-weight: 650;
    text-align: center;
}

.resend-box button {
    padding: 0;
    border: 0;
    color: var(--brand-primary);
    background: transparent;
    cursor: pointer;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ========================================== */
/* SUCESSO                                     */
/* ========================================== */

.success-card {
    min-height: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.success-icon {
    position: relative;
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border-radius: 30px;
    color: #ffffff;
    background: var(--success);
    box-shadow: 0 24px 54px rgba(16, 185, 129, 0.28);
}

.success-icon::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 38px;
    background: rgba(16, 185, 129, 0.16);
    animation: successPulse 1.5s ease-in-out infinite;
}

.success-icon svg {
    position: relative;
    z-index: 2;
    width: 46px;
    height: 46px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes successPulse {
    0%,
    100% {
        transform: scale(0.94);
        opacity: 0.72;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.success-card p {
    margin-left: auto;
    margin-right: auto;
}

.success-meta {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 24px;
}

.success-meta div {
    min-width: 0;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.92);
    text-align: left;
}

.success-meta span {
    display: block;
    color: rgba(71, 85, 105, 0.62);
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.success-meta strong {
    display: block;
    min-width: 0;
    margin-top: 8px;
    color: #0f172a;
    font-size: 0.86rem;
    line-height: 1.3;
    font-weight: 850;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.success-login-link {
    margin-top: 0;
}

.success-back-link {
    margin-top: 18px;
    color: rgba(71, 85, 105, 0.74);
    font-size: 0.9rem;
    line-height: 1;
    font-weight: 850;
    text-decoration: none;
}

.success-back-link:hover {
    color: var(--brand-primary);
}

.signup-footer {
    margin-top: auto;
    padding-top: 32px;
    color: rgba(71, 85, 105, 0.62);
    font-size: 0.82rem;
    line-height: 1.4;
    font-weight: 650;
}

/* ========================================== */
/* BRANDING ASIDE                              */
/* ========================================== */

.signup-aside {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 5vw, 84px);
    overflow: hidden;
    background-image:
        radial-gradient(circle at 80% 14%, rgba(255, 255, 255, 0.35), transparent 32%),
        linear-gradient(145deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
}

.signup-aside::before,
.signup-aside::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(64px);
    pointer-events: none;
}

.signup-aside::before {
    width: 460px;
    height: 460px;
    top: -180px;
    right: -160px;
}

.signup-aside::after {
    width: 520px;
    height: 520px;
    left: -220px;
    bottom: -220px;
}

.aside-card {
    position: relative;
    z-index: 2;
    width: min(100%, 620px);
    color: #ffffff;
}

.aside-kicker {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    margin-bottom: 24px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.20);
    font-size: 0.76rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.aside-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.7rem, 5vw, 5rem);
    line-height: 0.94;
    font-weight: 850;
    letter-spacing: -0.08em;
}

.aside-card h2 span {
    display: block;
    color: rgba(255, 255, 255, 0.74);
}

.aside-card > p {
    max-width: 560px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.74;
    font-weight: 550;
    letter-spacing: -0.018em;
}

.aside-benefits {
    display: grid;
    gap: 14px;
    margin-top: 36px;
}

.aside-benefits article {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.aside-benefits i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
}

.aside-benefits i::before {
    content: "";
    width: 12px;
    height: 6px;
    border-left: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: rotate(-45deg) translate(2px, -1px);
}

.aside-benefits strong {
    display: block;
    color: #ffffff;
    font-size: 0.98rem;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.aside-benefits span {
    display: block;
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.88rem;
    line-height: 1.46;
    font-weight: 560;
}

.aside-dashboard {
    margin-top: 38px;
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 34px 90px rgba(4, 30, 51, 0.22);
}

.aside-dashboard-bar {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.82);
}

.aside-dashboard-bar span {
    width: 10px;
    height: 10px;
    display: block;
    border-radius: 999px;
}

.aside-dashboard-bar span:nth-child(1) {
    background: #E94D20;
}

.aside-dashboard-bar span:nth-child(2) {
    background: #7BB400;
}

.aside-dashboard-bar span:nth-child(3) {
    background: var(--brand-primary);
}

.aside-dashboard-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 22px;
}

.aside-stat {
    min-height: 116px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    border-radius: 18px;
    background: #f8fcff;
    border: 1px solid rgba(226, 232, 240, 0.90);
}

.aside-stat.is-featured {
    grid-column: 1 / -1;
    min-height: 136px;
    background:
        radial-gradient(circle at 82% 18%, rgba(var(--brand-primary-rgb), 0.16), transparent 36%),
        #ffffff;
}

.aside-stat span {
    color: rgba(71, 85, 105, 0.70);
    font-size: 0.76rem;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.aside-stat strong {
    display: block;
    margin-top: 12px;
    color: #0f172a;
    font-size: 2.1rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.075em;
}

.aside-stat small {
    display: block;
    margin-top: 8px;
    color: var(--brand-primary);
    font-size: 0.82rem;
    line-height: 1;
    font-weight: 850;
}

/* ========================================== */
/* MODAL / SUPORTE                             */
/* ========================================== */

.modal-backdrop,
.modal-panel {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.modal-backdrop {
    background: rgba(2, 12, 20, 0.48);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-backdrop[hidden],
.modal-panel[hidden] {
    display: none !important;
}

.modal-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.modal-card {
    width: min(520px, 100%);
    max-height: 86vh;
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 34px 100px rgba(4, 30, 51, 0.24);
}

.modal-head {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.86);
}

.modal-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.modal-head button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: rgba(71, 85, 105, 0.74);
    background: transparent;
    cursor: pointer;
}

.modal-head button:hover {
    color: var(--brand-primary);
    background: rgba(var(--brand-primary-rgb), 0.08);
}

.modal-head svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.modal-content {
    max-height: calc(86vh - 72px);
    overflow-y: auto;
    padding: 24px;
    color: rgba(71, 85, 105, 0.80);
    font-size: 0.94rem;
    line-height: 1.68;
    font-weight: 550;
}

.modal-content p {
    margin: 0;
}

.modal-content ul {
    margin: 18px 0 0;
    padding-left: 20px;
}

.modal-content li + li {
    margin-top: 10px;
}

.support-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.support-bubble {
    position: relative;
    width: 280px;
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 24px 64px rgba(4, 30, 51, 0.18);
}

.support-bubble[hidden] {
    display: none !important;
}

.support-bubble button {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: rgba(71, 85, 105, 0.7);
    cursor: pointer;
}

.support-bubble strong {
    display: block;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: 900;
}

.support-bubble p {
    margin: 8px 0 0;
    color: rgba(71, 85, 105, 0.74);
    font-size: 0.84rem;
    line-height: 1.5;
    font-weight: 600;
}

.support-button {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: #25d366;
    box-shadow: 0 18px 38px rgba(37, 211, 102, 0.28);
    transition: transform 220ms var(--ease-out-expo), box-shadow 220ms ease;
}

.support-button:hover {
    transform: scale(1.06);
    box-shadow: 0 22px 46px rgba(37, 211, 102, 0.34);
}

.support-button svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* ========================================== */
/* RESPONSIVO BÁSICO                           */
/* Responsivo geral será refinado depois.      */
/* ========================================== */

@media (max-width: 1100px) {
    .signup-layout {
        grid-template-columns: 1fr;
    }

    .signup-aside {
        display: none;
    }

    .signup-main {
        border-right: 0;
    }
}

@media (max-width: 640px) {
    .signup-main {
        padding: 22px 18px 28px;
    }

    .signup-logo img {
        width: 148px;
    }

    .signup-card {
        width: 100%;
    }

    .signup-progress {
        margin-bottom: 34px;
    }

    .signup-progress-labels span {
        font-size: 0.64rem;
    }

    .signup-step-header h1,
    .success-card h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-full {
        grid-column: auto;
    }

    .otp-inputs {
        gap: 7px;
    }

    .otp-inputs input {
        width: 45px;
        height: 58px;
        border-radius: 15px;
        font-size: 1.45rem;
    }

    .success-meta {
        grid-template-columns: 1fr;
    }

    .support-widget {
        right: 16px;
        bottom: 16px;
    }

    .support-bubble {
        width: calc(100vw - 32px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================== */
/* HOTFIX — LADO DIREITO DO CADASTRO           */
/* ========================================== */

.signup-aside {
    align-items: flex-start;
    justify-content: center;

    padding: clamp(42px, 4.4vw, 72px) clamp(42px, 5vw, 84px);
    overflow-y: auto;
}

.aside-card {
    width: min(100%, 620px);
    padding-top: 0;
}

.aside-kicker {
    margin-bottom: 18px;
}

.aside-card h2 {
    max-width: 620px;

    font-size: clamp(2.65rem, 4.15vw, 4.6rem);
    line-height: 0.96;
    letter-spacing: -0.075em;
}

.aside-card h2 span {
    color: rgba(255, 255, 255, 0.78);
}

.aside-card > p {
    max-width: 560px;
    margin-top: 22px;

    font-size: 1rem;
    line-height: 1.62;
}

.aside-benefits {
    gap: 12px;
    margin-top: 28px;
}

.aside-benefits article {
    min-height: 78px;
    align-items: center;

    padding: 14px 16px;
    border-radius: 18px;
}

.aside-benefits i {
    width: 38px;
    height: 38px;
    border-radius: 14px;
}

.aside-benefits strong {
    font-size: 0.96rem;
}

.aside-benefits span {
    margin-top: 5px;

    font-size: 0.84rem;
    line-height: 1.38;
}

.aside-dashboard {
    margin-top: 28px;
    border-radius: 24px;
}

.aside-dashboard-bar {
    height: 38px;
}

.aside-dashboard-content {
    gap: 12px;
    padding: 20px;
}

.aside-stat {
    min-height: 96px;
    padding: 16px;
    border-radius: 16px;
}

.aside-stat.is-featured {
    min-height: 118px;
}

.aside-stat strong {
    font-size: 1.86rem;
}

.aside-stat span {
    font-size: 0.72rem;
}

.aside-stat small {
    font-size: 0.78rem;
}

/* telas com pouca altura */
@media (max-height: 860px) and (min-width: 981px) {
    .signup-aside {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .aside-card h2 {
        font-size: clamp(2.3rem, 3.65vw, 3.8rem);
        line-height: 0.98;
    }

    .aside-card > p {
        margin-top: 18px;
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .aside-benefits {
        margin-top: 22px;
    }

    .aside-benefits article {
        min-height: 68px;
        padding: 12px 14px;
    }

    .aside-dashboard {
        margin-top: 22px;
    }

    .aside-stat.is-featured {
        min-height: 104px;
    }

    .aside-stat {
        min-height: 82px;
    }
}

/* ========================================== */
/* CADASTRO — LADO DIREITO MINIMALISTA         */
/* ========================================== */

.signup-aside {
    align-items: center;
    justify-content: center;
}

.aside-card {
    width: min(100%, 660px);
}

.aside-card h2 {
    max-width: 650px;
    font-size: clamp(3.2rem, 5vw, 5.8rem);
    line-height: 0.94;
    letter-spacing: -0.085em;
}

.aside-card > p {
    max-width: 600px;
    margin-top: 28px;

    font-size: 1.08rem;
    line-height: 1.72;
}

.aside-benefits {
    max-width: 620px;
    margin-top: 42px;
}

.aside-benefits article {
    min-height: 82px;
    padding: 18px 20px;
    border-radius: 22px;
}

.aside-dashboard {
    display: none !important;
}

/* ========================================== */
/* CADASTRO — ASIDE MAIS DISCRETO              */
/* ========================================== */

.signup-aside {
    align-items: center;
    justify-content: center;
    padding: clamp(48px, 5vw, 84px);
}

.aside-card {
    width: min(100%, 560px);
}

.aside-kicker {
    margin-bottom: 18px;

    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.aside-card h2 {
    max-width: 520px;

    font-size: clamp(2.15rem, 3.1vw, 3.65rem);
    line-height: 1.02;
    letter-spacing: -0.065em;
    font-weight: 850;
}

.aside-card h2 span {
    color: rgba(255, 255, 255, 0.78);
}

.aside-card > p {
    max-width: 500px;
    margin-top: 22px;

    font-size: 0.98rem;
    line-height: 1.7;
    font-weight: 600;
}

.aside-benefits {
    max-width: 520px;
    margin-top: 34px;
    gap: 12px;
}

.aside-benefits article {
    min-height: 72px;
    padding: 14px 16px;
    border-radius: 18px;
}

.aside-benefits i {
    width: 36px;
    height: 36px;
    border-radius: 13px;
}

.aside-benefits strong {
    font-size: 0.92rem;
    line-height: 1.15;
}

.aside-benefits span {
    margin-top: 4px;

    font-size: 0.8rem;
    line-height: 1.42;
}

.aside-dashboard {
    display: none !important;
}

/* Em telas menores de altura, deixa ainda mais compacto */
@media (max-height: 860px) and (min-width: 981px) {
    .signup-aside {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .aside-card h2 {
        font-size: clamp(2rem, 2.7vw, 3.1rem);
        line-height: 1.04;
    }

    .aside-card > p {
        margin-top: 18px;
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .aside-benefits {
        margin-top: 26px;
    }

    .aside-benefits article {
        min-height: 64px;
        padding: 12px 14px;
    }
}

/* ========================================== */
/* CADASTRO — SCROLL SOMENTE NO FORM           */
/* ========================================== */

html,
body {
    height: 100%;
    overflow: hidden;
}

.signup-page {
    height: 100vh;
    overflow: hidden;
}

.signup-layout {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.signup-main {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}

.signup-card {
    flex: 1;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 8px;
    padding-bottom: 40px;

    overscroll-behavior: contain;
}

.signup-aside {
    height: 100vh;
    overflow: hidden;
}

/* Scrollbar discreta só no formulário */

.signup-card::-webkit-scrollbar {
    width: 6px;
}

.signup-card::-webkit-scrollbar-track {
    background: transparent;
}

.signup-card::-webkit-scrollbar-thumb {
    background: rgba(var(--brand-primary-rgb), 0.0);
    border-radius: 999px;
}

.signup-card::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--brand-primary-rgb), 0.0);
}

/* ========================================== */
/* CADASTRO — RODAPÉ LEGAL                     */
/* ========================================== */

.signup-footer {
    margin-top: 28px;
    padding-top: 18px;

    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.signup-footer span {
    display: block;

    color: rgba(71, 85, 105, 0.62);
    font-size: 0.76rem;
    line-height: 1.55;
    font-weight: 600;
    letter-spacing: -0.012em;
}

/* ========================================== */
/* MODAL LEGAL — CADASTRO                      */
/* ========================================== */

.legal-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99990;

    background: rgba(2, 12, 20, 0.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.legal-modal-backdrop[hidden],
.legal-modal-panel[hidden] {
    display: none !important;
}

.legal-modal-panel {
    position: fixed;
    inset: 0;
    z-index: 99991;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 34px;
}

.legal-modal-card {
    width: min(980px, 100%);
    max-height: min(86vh, 860px);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.92);

    box-shadow: 0 34px 100px rgba(2, 12, 20, 0.34);
}

.legal-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    padding: 28px 30px 22px;

    border-bottom: 1px solid rgba(226, 232, 240, 0.92);

    background:
        radial-gradient(circle at 86% 12%, rgba(var(--brand-primary-rgb), 0.13), transparent 32%),
        #ffffff;
}

.legal-modal-head span {
    display: block;

    color: var(--brand-primary);
    font-size: 0.74rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.legal-modal-head h2 {
    margin: 10px 0 0;

    color: #0f172a;
    font-size: clamp(1.45rem, 2.6vw, 2.35rem);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -0.055em;
}

#legalModalClose {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 999px;

    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
    cursor: pointer;

    transition: background 220ms ease, color 220ms ease;
}

#legalModalClose:hover {
    color: var(--brand-primary);
    background: rgba(var(--brand-primary-rgb), 0.12);
}

#legalModalClose svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.legal-modal-content {
    padding: 30px;

    overflow-y: auto;
    overscroll-behavior: contain;

    color: rgba(51, 65, 85, 0.92);
    font-size: 0.96rem;
    line-height: 1.75;
    font-weight: 500;
}

.legal-modal-content h1 {
    margin: 0 0 8px;

    color: #0f172a;
    font-size: 1.6rem;
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.legal-modal-content h2 {
    margin: 30px 0 12px;

    color: #0f172a;
    font-size: 1.16rem;
    line-height: 1.28;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.legal-modal-content p {
    margin: 0 0 12px;
}

.legal-modal-content .legal-meta {
    color: rgba(71, 85, 105, 0.72);
    font-size: 0.88rem;
    font-weight: 700;
}

.legal-modal-content .legal-item {
    padding-left: 14px;
}

@media (max-width: 640px) {
    .legal-modal-panel {
        padding: 14px;
    }

    .legal-modal-card {
        max-height: 88vh;
        border-radius: 22px;
    }

    .legal-modal-head {
        padding: 22px 20px 18px;
    }

    .legal-modal-content {
        padding: 22px 20px;
        font-size: 0.9rem;
    }
}

/* ========================================== */
/* CADASTRO — ESCONDER BARRA DE ROLAGEM        */
/* ========================================== */

.signup-card {
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* Edge antigo */
}

.signup-card::-webkit-scrollbar {
    display: none;              /* Chrome, Edge, Safari */
}