:root {
    --navy-950: #061226;
    --navy-900: #091a35;
    --navy-800: #102b55;

    --blue-700: #184fcf;
    --blue-600: #2365e8;
    --blue-500: #3978f5;
    --violet-600: #6547e8;

    --white: #ffffff;
    --background: #f7f9fc;

    --text: #172033;
    --muted: #6d7890;
    --light: #98a2b3;

    --border: #e1e7f0;
    --border-strong: #cbd4e1;

    --danger: #b42318;
    --danger-bg: #fff3f2;
    --danger-border: #fecdca;

    --shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
    --button-shadow: 0 16px 34px rgba(35, 101, 232, 0.24);

    --transition: 180ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
}

/* =========================================================
   ESTRUTURA
========================================================= */

.snp-login-body {
    overflow-x: hidden;
}

.snp-login {
    display: grid;
    grid-template-columns:
        minmax(520px, 1.05fr)
        minmax(460px, 0.95fr);

    min-height: 100vh;
    background: #ffffff;
}

/* =========================================================
   PAINEL ESQUERDO
========================================================= */

.snp-login-visual {
    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 100vh;

    padding:
        38px
        clamp(42px, 5vw, 76px)
        30px;

    overflow: hidden;
    color: #ffffff;

    background:
        radial-gradient(
            circle at 14% 12%,
            rgba(57, 120, 245, 0.23),
            transparent 34%
        ),
        radial-gradient(
            circle at 88% 80%,
            rgba(101, 71, 232, 0.20),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            var(--navy-950) 0%,
            var(--navy-900) 50%,
            var(--navy-800) 100%
        );
}

.snp-login-visual-background,
.snp-login-visual-overlay,
.snp-login-visual-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.snp-login-visual-background {
    z-index: -4;
    opacity: 0.20;

    background:
        linear-gradient(
            120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.04) 47%,
            transparent 48%
        ),
        radial-gradient(
            ellipse at 55% 100%,
            rgba(46, 108, 230, 0.34),
            transparent 58%
        );
}

.snp-login-visual-overlay {
    z-index: -3;

    background:
        linear-gradient(
            to right,
            rgba(4, 11, 24, 0.10),
            rgba(4, 11, 24, 0.02)
        );
}

.snp-login-visual-grid {
    z-index: -2;
    opacity: 0.055;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.12) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.12) 1px,
            transparent 1px
        );

    background-size: 48px 48px;

    mask-image:
        linear-gradient(
            to bottom right,
            rgba(0, 0, 0, 0.72),
            transparent 76%
        );
}

.snp-login-visual::before {
    content: "";

    position: absolute;
    z-index: -1;

    width: 580px;
    height: 580px;

    right: -360px;
    bottom: -310px;

    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 0 0 68px rgba(255, 255, 255, 0.022),
        0 0 0 136px rgba(255, 255, 255, 0.014);
}

/* =========================================================
   LOGÓTIPO
========================================================= */

.snp-login-brand {
    position: relative;
    z-index: 2;
}

.snp-login-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.snp-login-logo-mark {
    display: grid;
    grid-template-columns: repeat(3, 7px);
    align-items: end;
    gap: 3px;

    width: 39px;
    height: 39px;
    padding: 9px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--violet-600),
            var(--blue-600)
        );

    box-shadow:
        0 12px 28px rgba(35, 101, 232, 0.30);
}

.snp-login-logo-mark i {
    display: block;
    width: 7px;

    border-radius: 3px 3px 1px 1px;
    background: rgba(255, 255, 255, 0.96);
}

.snp-login-logo-mark i:nth-child(1) {
    height: 12px;
}

.snp-login-logo-mark i:nth-child(2) {
    height: 19px;
}

.snp-login-logo-mark i:nth-child(3) {
    height: 15px;
}

.snp-login-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.snp-login-logo-text strong {
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.snp-login-logo-text small {
    margin-top: 5px;

    color: rgba(255, 255, 255, 0.64);

    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.22em;
}

/* =========================================================
   MENSAGEM PRINCIPAL
========================================================= */

.snp-login-message {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 590px;

    margin-top: auto;
    padding-top: 54px;
}

.snp-login-eyebrow {
    display: block;
    margin-bottom: 18px;

    color: #8db4ff;

    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.17em;
}

.snp-login-message h1 {
    max-width: 500px;
    margin: 0;

    font-size: clamp(38px, 3.2vw, 48px);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.snp-login-message h1 span {
    color: #72a1ff;
}

.snp-login-message p {
    max-width: 540px;
    margin: 20px 0 0;

    color: rgba(255, 255, 255, 0.68);

    font-size: 14px;
    line-height: 1.72;
}

/* =========================================================
   DESTAQUES
========================================================= */

.snp-login-highlights {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;

    width: 100%;
    max-width: 700px;

    margin-top: 31px;
}

.snp-login-highlights article {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    min-width: 0;
    min-height: 99px;

    padding: 14px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.043);
    backdrop-filter: blur(10px);

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.snp-login-highlights article:hover {
    transform: translateY(-3px);

    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.068);
}

.snp-login-highlight-icon {
    display: grid;
    place-items: center;
    flex: 0 0 31px;

    width: 31px;
    height: 31px;

    border-radius: 9px;

    color: #8eb2ff;
    background: rgba(57, 120, 245, 0.13);
}

.snp-login-highlight-icon svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.snp-login-highlights article > span:last-child {
    min-width: 0;
}

.snp-login-highlights strong {
    display: block;

    color: rgba(255, 255, 255, 0.95);

    font-size: 11px;
    font-weight: 760;
    line-height: 1.35;
}

.snp-login-highlights small {
    display: block;
    margin-top: 5px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 9.5px;
    line-height: 1.5;
}

.snp-login-visual-footer {
    position: relative;
    z-index: 2;

    margin-top: auto;
    padding-top: 24px;

    color: rgba(255, 255, 255, 0.40);

    font-size: 9px;
    letter-spacing: 0.04em;
}

/* =========================================================
   PAINEL DIREITO
========================================================= */

.snp-login-access {
    position: relative;

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

    min-width: 0;
    min-height: 100vh;

    padding:
        34px
        clamp(30px, 4.5vw, 68px);

    overflow: hidden;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(57, 120, 245, 0.065),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #ffffff,
            #fafbfe
        );
}

.snp-login-card {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 460px;

    padding: 34px 34px 24px;

    border: 1px solid rgba(226, 231, 240, 0.95);
    border-radius: 26px;

    background: rgba(255, 255, 255, 0.98);

    box-shadow: var(--shadow);

    animation: cardEnter 480ms ease both;
}

.snp-login-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 62%;
    height: 3px;

    border-radius: 0 0 4px 4px;

    background:
        linear-gradient(
            90deg,
            var(--blue-600),
            var(--violet-600)
        );

    transform: translateX(-50%);
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* =========================================================
   CABEÇALHO DO CARTÃO
========================================================= */

.snp-login-card-header {
    text-align: center;
}

.snp-login-card-label {
    display: inline-block;
    margin-bottom: 11px;

    color: var(--blue-600);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.17em;
}

.snp-login-card-header h2 {
    margin: 0;

    color: var(--text);

    font-size: 31px;
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -0.038em;
}

.snp-login-card-header p {
    max-width: 330px;
    margin: 9px auto 23px;

    color: var(--muted);

    font-size: 12.5px;
    line-height: 1.55;
}

/* =========================================================
   ALERTAS
========================================================= */

.snp-login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 18px;
    padding: 12px 13px;

    border: 1px solid var(--danger-border);
    border-radius: 11px;

    color: var(--danger);
    background: var(--danger-bg);
}

.snp-login-alert > span {
    display: grid;
    place-items: center;
    flex: 0 0 19px;

    width: 19px;
    height: 19px;

    border-radius: 50%;

    color: #ffffff;
    background: var(--danger);

    font-size: 10px;
    font-weight: 900;
}

.snp-login-alert p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

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

.snp-login-field + .snp-login-field {
    margin-top: 15px;
}

.snp-login-field label,
.snp-login-label-row label {
    display: block;

    color: #263149;

    font-size: 12px;
    font-weight: 720;
}

.snp-login-field > label {
    margin-bottom: 7px;
}

.snp-login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 7px;
}

.snp-login-label-row a {
    color: var(--blue-600);

    font-size: 10.5px;
    font-weight: 650;
}

.snp-login-label-row a:hover {
    text-decoration: underline;
}

.snp-login-input {
    position: relative;
}

.snp-login-input > span {
    position: absolute;
    z-index: 2;

    top: 50%;
    left: 14px;

    color: #8995a9;

    transform: translateY(-50%);
    pointer-events: none;
}

.snp-login-input > span svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.snp-login-input input {
    display: block;

    width: 100%;
    height: 50px;

    padding:
        0
        46px
        0
        43px;

    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;

    color: var(--text);
    background: #fbfcfe;

    font-size: 13px;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.snp-login-input input::placeholder {
    color: #9ea8b9;
}

.snp-login-input input:hover {
    border-color: var(--border-strong);
    background: #ffffff;
}

.snp-login-input input:focus {
    border-color: var(--blue-500);
    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(57, 120, 245, 0.10);
}

.snp-login-input:focus-within > span {
    color: var(--blue-600);
}

/* =========================================================
   MOSTRAR PALAVRA-PASSE
========================================================= */

.snp-login-password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    padding: 0;
    border: 0;
    border-radius: 9px;

    color: #7f8ba0;
    background: transparent;

    cursor: pointer;
    transform: translateY(-50%);
}

.snp-login-password-toggle:hover {
    color: var(--blue-600);
    background: #eef4ff;
}

.snp-login-password-toggle svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.snp-login-eye-closed {
    display: none;
}

.snp-login-password-toggle[aria-pressed="true"]
.snp-login-eye-open {
    display: none;
}

.snp-login-password-toggle[aria-pressed="true"]
.snp-login-eye-closed {
    display: block;
}

/* =========================================================
   MANTER SESSÃO
========================================================= */

.snp-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-top: 16px;

    color: #59657a;

    font-size: 11.5px;
    cursor: pointer;
}

.snp-login-remember input {
    width: 15px;
    height: 15px;

    margin: 0;

    accent-color: var(--blue-600);
}

/* =========================================================
   BOTÃO
========================================================= */

.snp-login-submit {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    width: 100%;
    min-height: 52px;

    margin-top: 22px;
    padding: 0 20px;

    border: 0;
    border-radius: 12px;

    color: #ffffff;
    background:
        linear-gradient(
            100deg,
            var(--blue-600),
            var(--violet-600)
        );

    box-shadow: var(--button-shadow);

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        filter var(--transition);
}

.snp-login-submit:hover {
    transform: translateY(-2px);

    filter: saturate(1.08);

    box-shadow:
        0 20px 42px rgba(35, 101, 232, 0.30);
}

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

.snp-login-submit-arrow {
    font-size: 17px;
    transition: transform var(--transition);
}

.snp-login-submit:hover .snp-login-submit-arrow {
    transform: translateX(4px);
}

.snp-login-submit-loader {
    display: none;

    width: 18px;
    height: 18px;

    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;

    animation: loginSpin 700ms linear infinite;
}

.snp-login-submit.is-loading
.snp-login-submit-text,
.snp-login-submit.is-loading
.snp-login-submit-arrow {
    display: none;
}

.snp-login-submit.is-loading
.snp-login-submit-loader {
    display: block;
}

@keyframes loginSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   SEGURANÇA
========================================================= */

.snp-login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 21px;

    color: #7b879b;

    font-size: 10.5px;
    line-height: 1.4;
}

.snp-login-security svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;

    fill: none;
    stroke: var(--blue-600);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   RODAPÉ
========================================================= */

.snp-login-card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;

    margin-top: 20px;
    padding-top: 18px;

    border-top: 1px solid var(--border);

    color: var(--light);
    font-size: 9.5px;
}

.snp-login-card-footer nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
}

.snp-login-card-footer a:hover {
    color: var(--blue-600);
}

/* =========================================================
   AUTOFILL
========================================================= */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
}

/* =========================================================
   RESPONSIVIDADE
========================================================= */

@media (max-width: 1150px) {
    .snp-login {
        grid-template-columns:
            minmax(470px, 0.92fr)
            minmax(440px, 1.08fr);
    }

    .snp-login-highlights {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .snp-login-highlights article {
        min-height: auto;
    }
}

@media (max-width: 920px) {
    .snp-login {
        grid-template-columns: 1fr;
    }

    .snp-login-visual {
        min-height: auto;
        padding: 38px 28px 46px;
    }

    .snp-login-message {
        margin-top: 58px;
        padding-top: 0;
    }

    .snp-login-highlights {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        max-width: none;
    }

    .snp-login-visual-footer {
        margin-top: 32px;
    }

    .snp-login-access {
        min-height: auto;
        padding: 54px 22px;
    }
}

@media (max-width: 700px) {
    .snp-login-visual {
        padding: 30px 20px 36px;
    }

    .snp-login-message {
        margin-top: 44px;
    }

    .snp-login-message h1 {
        font-size: 36px;
    }

    .snp-login-message p {
        font-size: 13px;
    }

    .snp-login-highlights {
        grid-template-columns: 1fr;
        margin-top: 26px;
    }

    .snp-login-access {
        padding: 28px 14px;
    }

    .snp-login-card {
        padding: 29px 21px 22px;
        border-radius: 21px;
    }

    .snp-login-card-header h2 {
        font-size: 28px;
    }

    .snp-login-label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .snp-login-card-footer nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 430px) {
    .snp-login-logo-text strong {
        font-size: 11px;
    }

    .snp-login-message h1 {
        font-size: 32px;
    }

    .snp-login-card {
        box-shadow:
            0 12px 40px rgba(15, 23, 42, 0.10);
    }
}

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