.faixa-alerta-login {
    width: 100%;
    background: #b71c1c;
    border: 1px solid #ef5350;
    border-left: 5px solid #ff5252;
    border-radius: 6px;
    padding: 14px 20px;
    margin: 15px 0;
    box-sizing: border-box;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.20);
}

.alerta-conteudo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alerta-texto {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

/* Ajuste para celulares */
@media (max-width: 576px) {
    .faixa-alerta-login {
        padding: 12px;
        margin: 10px 0;
    }

    .alerta-texto {
        font-size: 13px;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 576px) {
    .faixa-alerta-login {
        padding: 12px 14px;
        margin-bottom: 18px;
        border-radius: 4px;
    }

    .alerta-conteudo {
        align-items: flex-start;
        gap: 10px;
    }

    .alerta-icone {
        min-width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .alerta-texto {
        font-size: 14px;
    }
}

:root {
    --sq-blue: #426ab3;
    --sq-cyan: #5cb6d5;
    --sq-green: #a5c63f;
    --sq-ink: #333132;
    --sq-navy: #26344f;
    --sq-navy-2: #314464;
    --sq-paper: #f8f9f8;
    --sq-line: #e5e8eb;
    --sq-muted: #717983;
    --sq-danger: #c94848;
    --shadow-soft: 0 28px 70px rgba(21, 31, 49, .13);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100dvh;
    background: var(--sq-paper);
    color: var(--sq-ink);
    font-family: "Inter", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

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

a {
    color: inherit;
}

.page {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(470px, .85fr);
    overflow: hidden;
    position: relative;
}

.page::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: 3px;
    z-index: 30;
    background: linear-gradient(90deg, var(--sq-cyan), var(--sq-blue) 58%, var(--sq-green));
}

.visual {
    position: relative;
    isolation: isolate;
    min-height: 100dvh;
    padding: clamp(34px, 4vw, 68px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: linear-gradient(115deg, rgba(23, 36, 59, .97) 3%, rgba(35, 52, 79, .90) 44%, rgba(32, 49, 76, .62) 100%), linear-gradient(45deg, rgba(66, 106, 179, .34) 0%, rgba(66, 106, 179, .18) 28%, rgba(66, 106, 179, 0) 58%), url("https://www.sysquali.com.br/wp-content/uploads/2025/05/freepik__the-style-is-candid-image-photography-with-natural__24964.avif") 60% 22% / cover no-repeat, #273750;
}

.visual::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: clamp(420px, 46vw, 780px);
    aspect-ratio: 1;
    right: clamp(-260px, -10vw, -120px);
    top: clamp(-230px, -12vw, -90px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(92, 182, 213, .24) 0 1%, rgba(92, 182, 213, .08) 34%, transparent 67%);
    filter: blur(4px);
    opacity: .9;
}

.visual::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto -10% -17% 25%;
    height: 46%;
    transform: rotate(-7deg);
    background: linear-gradient(100deg, transparent 0%, rgba(66, 106, 179, .12) 42%, rgba(92, 182, 213, .18) 100%);
    clip-path: polygon(15% 0, 100% 12%, 83% 100%, 0 82%);
    opacity: .7;
}

.visual-content {
    position: relative;
    z-index: 2;
    max-width: 660px;
    padding-bottom: clamp(18px, 4.5vh, 44px);
    color: #fff;
}

.visual-content,
.visual-content * {
    text-wrap: balance;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    color: var(--sq-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.eyebrow::after {
    content: "";
    width: 30px;
    height: 1px;
    background: currentColor;
    transform-origin: left center;
}

.visual h1 {
    margin: 0;
    max-width: 600px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(42px, 4.6vw, 74px);
    font-weight: 100;
    line-height: .98;
    letter-spacing: -.045em;
}

.visual h1 strong {
    font-weight: 300;
    color: var(--sq-cyan);
}

.visual-copy {
    margin: 26px 0 0;
    max-width: 560px;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    line-height: 1.68;
}

.visual-note {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 30px;
    color: rgba(255, 255, 255, .48);
    font-size: 12px;
}

.visual-note svg {
    width: 16px;
    height: 16px;
    color: var(--sq-cyan);
}

.auth-panel {
    min-height: 100dvh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(34px, 5vw, 78px);
    background: radial-gradient(circle at 86% 9%, rgba(92, 182, 213, .10), transparent 24%), linear-gradient(180deg, #ffffff 0%, #fbfbfa 100%);
}

.auth-wrap {
    width: min(100%, 458px);
    position: relative;
    z-index: 2;
}

.brand {
    display: inline-block;
    width: 336px;
    max-width: 80%;
    margin-bottom: clamp(48px, 7vh, 82px);
}

.brand svg {
    display: block;
    width: 100%;
    height: auto;
}

.auth-heading {
    margin-bottom: 36px;
    text-wrap: balance;
}

.auth-heading * {
    text-wrap: balance;
}

.auth-kicker {
    margin: 0 0 11px;
    color: var(--sq-green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-heading h2 {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(34px, 3vw, 46px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -.035em;
    color: #28364e;
}

.auth-heading p {
    margin: 13px 0 0;
    color: var(--sq-muted);
    font-size: 14px;
    line-height: 1.55;
}

.form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    row-gap: 20px;
}

.field {
    position: relative;
    display: grid;
    grid-column: 1 / -1;
    gap: 0;
}

.mensagem_login {
    position: relative;
    display: grid;
    grid-column: 1 / -1;
    gap: 0;
    color: brown;
}


/* Mantém o label disponível para leitores de tela sem duplicá-lo visualmente. */
.field-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.control {
    position: relative;
    display: flex;
    align-items: center;
}

.control>svg {
    position: absolute;
    left: 17px;
    width: 18px;
    height: 18px;
    color: #97a0aa;
    pointer-events: none;
    transition: color .2s var(--ease);
}

.control input {
    width: 100%;
    height: 58px;
    padding: 0 50px 0 49px;
    border: 1px solid #dde2e6;
    border-radius: 13px;
    outline: 0;
    background: rgba(255, 255, 255, .82);
    color: #2e3540;
    font-size: 14px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}

.control input::placeholder {
    color: #7f8791;
    opacity: 1;
}

.control:focus-within>svg {
    color: var(--sq-blue);
}

.control input:focus {
    border-color: rgba(66, 106, 179, .66);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(66, 106, 179, .08);
}

.toggle-pass {
    position: absolute;
    right: 11px;
    width: 38px;
    height: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #8b949f;
    cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease);
}

.toggle-pass:hover,
.toggle-pass:focus-visible {
    background: #f1f5f7;
    color: var(--sq-blue);
    outline: 0;
}

.toggle-pass svg {
    width: 18px;
    height: 18px;
}

.form-meta {
    grid-column: 1;
    grid-row: 4;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-top: -2px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #68717c;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

.remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.check {
    width: 17px;
    height: 17px;
    border: 1px solid #cfd6dc;
    border-radius: 5px;
    display: grid;
    place-items: center;
    background: #fff;
    transition: .2s var(--ease);
}

.check svg {
    width: 11px;
    height: 11px;
    opacity: 0;
    transform: scale(.65);
    color: #fff;
    transition: .2s var(--ease);
}

.remember input:checked+.check {
    border-color: var(--sq-blue);
    background: var(--sq-blue);
}

.remember input:checked+.check svg {
    opacity: 1;
    transform: scale(1);
}

.remember input:focus-visible+.check {
    box-shadow: 0 0 0 4px rgba(66, 106, 179, .10);
}

.forgot {
    grid-column: 2;
    grid-row: 4;
    align-self: center;
    justify-self: end;
    color: var(--sq-blue);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s var(--ease);
}

.forgot:hover {
    color: #2d538f;
}

.submit {
    grid-column: 1 / -1;
    grid-row: 5;
    width: 100%;
    min-height: 58px;
    margin-top: 7px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sq-blue) 0%, #4ba9cc 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .045em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(92, 182, 213, .22);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
}

.submit svg {
    width: 18px;
    height: 18px;
    transition: transform .22s var(--ease);
}

.submit:hover {
    transform: translateY(-1px);
    background: linear-gradient(90deg, #365d9e 0%, #45a6ca 100%);
    box-shadow: 0 17px 30px rgba(92, 182, 213, .28);
}

.submit:hover svg {
    transform: translateX(3px);
}

.submit:active {
    transform: translateY(0);
}

.submit:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(92, 182, 213, .17), 0 14px 30px rgba(92, 182, 213, .24);
}

.support {
    margin: 28px 0 0;
    padding-top: 25px;
    border-top: 1px solid #eceff1;
    text-align: center;
    color: #8a929a;
    font-size: 11px;
    line-height: 1.5;
}

.support a {
    color: #5c6670;
    font-weight: 600;
    text-decoration: none;
}

.support a:hover {
    color: var(--sq-blue);
}

.legal {
    position: absolute;
    bottom: 26px;
    left: 0;
    right: 0;
    padding: 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #a0a6ad;
    font-size: 10px;
}

.legal a {
    color: inherit;
    text-decoration: none;
    transition: color .2s var(--ease);
}

.legal a:hover,
.legal a:focus-visible {
    color: var(--sq-blue);
    outline: 0;
}

.legal span+span::before {
    content: "•";
    margin-right: 9px;
    color: #c6cbd0;
}

@media (max-width: 1120px) {
    .page {
        grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr);
    }

    .visual {
        padding: 42px;
    }

    .visual h1 {
        font-size: clamp(40px, 4.2vw, 56px);
    }

    .visual-copy {
        max-width: 450px;
    }

    .auth-panel {
        padding-inline: 52px;
    }
}

@media (max-width: 820px) {
    .page {
        display: block;
        min-height: 100dvh;
        overflow: visible;
        background: #fff;
    }

    .visual {
        min-height: 235px;
        height: 31svh;
        max-height: 290px;
        padding: 28px 26px 70px;
        background-position: 60% 22%;
    }

    .visual-content {
        display: none;
    }

    .auth-panel {
        min-height: calc(69svh + 34px);
        margin-top: -34px;
        border-radius: 28px 28px 0 0;
        padding: 40px 24px calc(82px + env(safe-area-inset-bottom));
        align-items: flex-start;
        box-shadow: 0 -18px 50px rgba(15, 28, 48, .10);
    }

    .auth-wrap {
        width: min(100%, 500px);
    }

    .brand {
        width: 272px;
        margin-bottom: 40px;
    }

    .auth-heading {
        margin-bottom: 30px;
    }

    .auth-heading h2 {
        font-size: 34px;
    }

    .control input {
        height: 56px;
    }

    .submit {
        min-height: 56px;
    }

    .legal {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {
    .visual {
        min-height: 205px;
        height: 27svh;
        max-height: 230px;
        padding-inline: 20px;
    }

    .auth-panel {
        min-height: calc(73svh + 30px);
        margin-top: -30px;
        border-radius: 24px 24px 0 0;
        padding: 34px 20px 92px;
    }

    .brand {
        width: 238px;
        margin-bottom: 34px;
    }

    .auth-kicker {
        font-size: 10px;
    }

    .auth-heading h2 {
        font-size: 30px;
    }

    .auth-heading p {
        font-size: 13px;
    }

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

    .field {
        grid-column: 1;
        grid-row: auto;
        gap: 0;
    }

    .control input {
        height: 54px;
        border-radius: 12px;
        padding-left: 46px;
    }

    .control>svg {
        left: 16px;
    }

    .submit {
        min-height: 54px;
        border-radius: 999px;
    }

    .form-meta {
        grid-column: 1;
        grid-row: auto;
        align-items: center;
        justify-content: flex-start;
    }

    .submit {
        grid-column: 1;
        grid-row: auto;
    }

    .forgot {
        grid-column: 1;
        grid-row: auto;
        justify-self: center;
        margin-top: 2px;
        color: #7c8795;
        font-weight: 500;
    }

    .remember,
    .forgot {
        font-size: 11px;
    }

    .support {
        margin-top: 24px;
        padding-top: 22px;
    }

    .legal {
        font-size: 9px;
        padding-inline: 18px;
    }
}

@media (max-height: 760px) and (min-width: 821px) {
    .brand {
        margin-bottom: 38px;
    }

    .auth-heading {
        margin-bottom: 26px;
    }

    .form {
        gap: 16px;
    }

    .control input {
        height: 52px;
    }

    .submit {
        min-height: 52px;
    }

    .support {
        margin-top: 22px;
        padding-top: 20px;
    }

    .visual-content {
        padding-bottom: 8px;
    }

    .visual h1 {
        font-size: clamp(38px, 4vw, 58px);
    }

    .visual-copy {
        margin-top: 20px;
    }

    .visual-note {
        margin-top: 22px;
    }
}

@media (prefers-reduced-motion: no-preference) {

    .brand,
    .auth-kicker,
    .auth-heading h2,
    .auth-heading>p:last-child,
    .form>*,
    .support,
    .legal,
    .eyebrow,
    .visual h1,
    .visual-copy,
    .visual-note {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
        filter: blur(3px);
        animation: revealSoft .82s var(--ease) forwards;
    }

    .eyebrow {
        animation-delay: .10s;
    }

    .visual h1 {
        animation-delay: .24s;
    }

    .visual-copy {
        animation-delay: .40s;
    }

    .visual-note {
        animation-delay: .54s;
    }

    .brand {
        animation-delay: .08s;
    }

    .auth-kicker {
        animation-delay: .18s;
    }

    .auth-heading h2 {
        animation-delay: .27s;
    }

    .auth-heading>p:last-child {
        animation-delay: .36s;
    }

    .form> :nth-child(1) {
        animation-delay: .46s;
    }

    .form> :nth-child(2) {
        animation-delay: .53s;
    }

    .form> :nth-child(3) {
        animation-delay: .60s;
    }

    .form> :nth-child(4) {
        animation-delay: .67s;
    }

    .form> :nth-child(5) {
        animation-delay: .74s;
    }

    .form> :nth-child(6) {
        animation-delay: .81s;
    }

    .support {
        animation-delay: .88s;
    }

    .legal {
        animation-delay: .96s;
    }

    .eyebrow::after {
        transform: scaleX(0);
        animation: lineGrow .72s .48s var(--ease) forwards;
    }

    @keyframes revealSoft {
        0% {
            opacity: 0;
            transform: translate3d(0, 22px, 0) scale(.985);
            filter: blur(6px);
        }

        60% {
            opacity: .86;
            transform: translate3d(0, 3px, 0) scale(1);
            filter: blur(1.2px);
        }

        100% {
            opacity: 1;
            transform: translate3d(0, 0, 0) scale(1);
            filter: blur(0);
        }
    }

    @keyframes lineGrow {
        to {
            transform: scaleX(1);
        }
    }
}

.faixa-alerta-login,
.validation-summary-errors {
    grid-column: 1 / -1;
}

.field-validation-error,
.validation-summary-errors {
    color: #b71c1c;
    font-size: 13px;
}

.validation-summary-valid {
    display: none;
}

.submit:disabled {
    opacity: .65;
    cursor: wait;
}

.login-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: login-girar .7s linear infinite;
}

.submit.carregando .login-spinner {
    display: inline-block;
}

.submit:disabled {
    opacity: .8;
    cursor: wait;
}

.login-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

@keyframes login-girar {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-spinner {
        animation: none;
    }
}

/* Evita rolagem horizontal e preserva campos legíveis em celulares e tablets. */
.auth-panel,
.auth-wrap,
.form,
.field,
.control {
    min-width: 0
}

.control input {
    min-width: 0
}

.field-validation-error,
.validation-summary-errors,
.support,
.sq-alerta p {
    overflow-wrap: anywhere
}

@media(max-width:820px) {
    .control input {
        font-size: 16px
    }

    .auth-heading h2 {
        overflow-wrap: anywhere
    }
}

@media(max-width:360px) {
    .auth-panel {
        padding-inline: 16px
    }

    .brand {
        max-width: 100%;
        width: 220px
    }

    .auth-heading h2 {
        font-size: 27px
    }

    .legal {
        left: 16px;
        right: 16px;
        flex-wrap: wrap;
        gap: 8px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
}
