:root {
    --flow-purple: #7000e8;
}

button.flow-back,
button.back-link,
.password-links button.flow-back {
    padding: 0;
    border: 0;
    color: var(--flow-purple);
    background: transparent;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
}

button.flow-back:hover,
button.flow-back:focus-visible {
    color: #5900b8;
    text-decoration: underline;
}

.continue-demo:disabled {
    cursor: not-allowed;
    color: #929cb1;
    background: #eef0f4;
}

@media (max-width: 760px) {
    .access-header,
    .password-header,
    .otp-header {
        height: 88px;
        padding: 0 16px 0 31px;
        border-bottom-color: #d2d7e0;
    }

    .access-header .mobile-back,
    .password-header .mobile-back,
    .otp-header .mobile-back {
        width: 34px;
        height: 34px;
        padding: 0;
        border: 0;
        display: grid;
        place-items: center;
        background: transparent;
        font-family: Arial, sans-serif;
        font-size: 28px;
        font-weight: 300;
        cursor: pointer;
    }

    .access-header .mobile-back { color: var(--flow-purple); }
    .password-header .mobile-back,
    .otp-header .mobile-back { color: #26313d; }

    .access-header .help-link,
    .password-header .help-link,
    .otp-header .help-link {
        gap: 4px;
        color: #111;
        font-size: 14px;
        font-weight: 700;
    }

    /* Escolha do método */
    [data-screen="method"] .access-page {
        min-height: calc(100vh - 88px);
        padding: 24px 23px 32px;
    }

    [data-screen="method"] .mobile-heading h1 {
        margin: 0 0 4px;
        font-size: 23px;
        line-height: 1.3;
    }

    [data-screen="method"] .mobile-heading p {
        margin-bottom: 11px;
        font-size: 16px;
    }

    [data-screen="method"] .account-identity {
        gap: 7px;
    }

    [data-screen="method"] .account-identity strong {
        font-size: 16px;
    }

    [data-screen="method"] .method-panel {
        padding-top: 46px;
    }

    [data-screen="method"] .method-card,
    [data-screen="method"] .email-method {
        min-height: 92px;
        margin-bottom: 8px;
        padding: 11px 17px;
        border-color: #cbd2de;
        border-radius: 8px;
        gap: 15px;
        background: #fff;
    }

    [data-screen="method"] .method-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    [data-screen="method"] .method-copy strong {
        font-size: 18px;
    }

    [data-screen="method"] .method-copy small {
        max-width: 210px;
        font-size: 14px;
        line-height: 1.55;
        white-space: normal;
    }

    [data-screen="method"] .arrow {
        color: #202832;
        font-size: 31px;
    }

    [data-screen="method"] .access-terms {
        margin: auto 17px 0;
        padding-top: 70px;
        font-size: 12px;
        line-height: 2;
    }

    /* Senha */
    [data-screen="password"] .password-page {
        min-height: calc(100vh - 88px);
        padding: 24px 44px 31px;
    }

    [data-screen="password"] .password-intro h1 {
        margin: 0 0 15px;
        font-size: 21px;
        font-weight: 700;
        line-height: 1.35;
    }

    [data-screen="password"] .account-identity strong {
        font-size: 16px;
    }

    [data-screen="password"] .password-card {
        margin-top: 48px;
        padding: 0;
    }

    [data-screen="password"] .password-card label {
        margin-bottom: 10px;
        font-size: 16px;
    }

    [data-screen="password"] .password-field input {
        height: 49px;
        border: 1px solid #cbd2de;
        border-radius: 9px;
    }

    [data-screen="password"] .continue-demo {
        height: 49px;
        margin-top: 94px;
        border-radius: 28px;
    }

    [data-screen="password"] .continue-demo:disabled {
        color: #929cb1;
        background: #eef0f4;
    }

    [data-screen="password"] .password-links {
        margin-top: 26px;
        display: block;
    }

    [data-screen="password"] .password-links .flow-back {
        display: none;
    }

    [data-screen="password"] .password-links a {
        font-size: 16px;
        font-weight: 600;
    }

    [data-screen="password"] .password-terms {
        margin: auto 0 0;
        padding-top: 70px;
        font-size: 12px;
        line-height: 2;
    }

    /* Código por e-mail */
    [data-screen="otp"] .otp-page {
        min-height: calc(100vh - 88px);
        padding: 24px 23px 31px;
    }

    [data-screen="otp"] .otp-intro h1 {
        margin: 0 0 17px;
        font-size: 21px;
        font-weight: 700;
        line-height: 1.3;
    }

    [data-screen="otp"] .account-identity strong {
        font-size: 16px;
    }

    [data-screen="otp"] .otp-card {
        margin-top: 32px;
        padding: 0;
    }

    [data-screen="otp"] .otp-fields {
        gap: 14px;
        padding: 0 7px;
    }

    [data-screen="otp"] .otp-fields input {
        height: 48px;
        aspect-ratio: auto;
        border-color: #cbd2de;
    }

    [data-screen="otp"] .resend {
        margin: 15px 0 18px;
        color: var(--flow-purple);
        font-size: 14px;
    }

    [data-screen="otp"] .notice {
        min-height: 74px;
        margin-bottom: 16px;
        padding: 14px 17px;
        border-radius: 7px;
        gap: 16px;
        background: #f0f1f4;
    }

    [data-screen="otp"] .notice p {
        font-size: 14px;
        line-height: 1.55;
    }

    [data-screen="otp"] .otp-terms {
        margin: auto 17px 0;
        padding-top: 55px;
        font-size: 12px;
        line-height: 2;
    }
}

@media (max-width: 390px) {
    [data-screen="method"] .access-page,
    [data-screen="otp"] .otp-page { padding-right: 16px; padding-left: 16px; }
    [data-screen="password"] .password-page { padding-right: 36px; padding-left: 36px; }
    [data-screen="otp"] .otp-fields { gap: 8px; padding: 0; }
}
