        :root {
            --peta-navy: #051339;
            --peta-navy-2: #03216d;
            --peta-blue-dark: #0638a6;
            --peta-blue: #0987f1;
            --peta-cyan: #13c5f5;
            --peta-cyan-light: #74e4fb;

            --page: #f4f7fb;
            --surface: #ffffff;
            --surface-soft: #f8fafc;
            --border: #dce4ee;
            --border-soft: #edf1f5;

            --text: #0d1b2e;
            --text-2: #40516a;
            --muted: #718096;

            --accent: #0987f1;
            --accent-hover: #0638a6;
            --accent-soft: #edf7ff;

            --success: #138a4b;
            --success-soft: #edf8f2;
            --danger: #bb2d3b;
            --danger-soft: #fff4f5;

            --radius: 10px;
            --radius-lg: 16px;
        }

        * { box-sizing: border-box; }

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

        body {
            min-height: 100vh;
            background: var(--page);
            color: var(--text);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            font-size: 13px;
            -webkit-font-smoothing: antialiased;
            text-rendering: optimizeLegibility;
        }

        button,
        input { font: inherit; }
        button { color: inherit; }
        a { color: inherit; text-decoration: none; }
        svg { display: block; }

        /* Estrutura */
        .auth-shell {
            min-height: 100vh;
            display: grid;
            grid-template-columns: minmax(430px, 46%) minmax(520px, 54%);
            background: var(--surface);
        }

        /* Painel institucional */
        .brand-side {
            position: relative;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            padding: 34px clamp(34px, 4vw, 64px);
            color: #fff;
            background:
                radial-gradient(circle at 76% 42%, rgba(9, 135, 241, .18), transparent 34%),
                linear-gradient(145deg, #04102f 0%, var(--peta-navy) 42%, var(--peta-navy-2) 100%);
        }

        .brand-side::before {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            opacity: .34;
            background-image:
                linear-gradient(rgba(116, 228, 251, .055) 1px, transparent 1px),
                linear-gradient(90deg, rgba(116, 228, 251, .055) 1px, transparent 1px);
            background-size: 42px 42px;
            mask-image: linear-gradient(to bottom, rgba(0,0,0,.82), transparent 86%);
        }

        .brand-side::after {
            content: "";
            position: absolute;
            width: 420px;
            height: 420px;
            right: -210px;
            bottom: -205px;
            border: 1px solid rgba(116, 228, 251, .11);
            border-radius: 50%;
            box-shadow:
                0 0 0 74px rgba(19, 197, 245, .025),
                0 0 0 150px rgba(9, 135, 241, .018);
            pointer-events: none;
        }

        .brand-logo {
            position: relative;
            z-index: 2;
            width: fit-content;
        }

        .brand-logo img {
            display: block;
            width: clamp(190px, 17vw, 235px);
            max-height: 132px;
            height: auto;
            object-fit: contain;
            object-position: left center;
            filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .18));
        }

        .brand-content {
            position: relative;
            z-index: 2;
            width: min(550px, 100%);
            margin: auto 0;
            padding: 46px 0 54px;
        }

        .brand-kicker {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            color: var(--peta-cyan-light);
            font-size: 10px;
            font-weight: 650;
            letter-spacing: .11em;
            text-transform: uppercase;
        }

        .brand-kicker::before {
            content: "";
            width: 24px;
            height: 1px;
            background: linear-gradient(90deg, var(--peta-cyan), rgba(19, 197, 245, .2));
        }

        .brand-content h1 {
            max-width: 520px;
            margin: 20px 0 0;
            font-size: clamp(32px, 3.15vw, 48px);
            line-height: 1.08;
            font-weight: 500;
            letter-spacing: -.04em;
        }

        .brand-content > p {
            max-width: 500px;
            margin: 18px 0 0;
            color: #b8c8db;
            font-size: 13px;
            line-height: 1.75;
        }

        .brand-features {
            display: grid;
            gap: 13px;
            margin-top: 34px;
            max-width: 500px;
        }

        .feature {
            display: grid;
            grid-template-columns: 34px 1fr;
            gap: 12px;
            align-items: start;
            padding: 2px 0;
        }

        .feature-icon {
            width: 34px;
            height: 34px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(116, 228, 251, .2);
            border-radius: 8px;
            background: rgba(9, 135, 241, .08);
            color: var(--peta-cyan-light);
        }

        .feature-icon svg { width: 15px; height: 15px; }

        .feature strong {
            display: block;
            margin-top: 1px;
            color: #f7fbff;
            font-size: 11.5px;
            font-weight: 650;
        }

        .feature span {
            display: block;
            margin-top: 4px;
            color: #8fa5bd;
            font-size: 10.5px;
            line-height: 1.5;
        }

        .brand-footer {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            padding-top: 18px;
            border-top: 1px solid rgba(116, 228, 251, .12);
            color: #8094aa;
            font-size: 9.5px;
        }

        .brand-footer > span:first-child {
            color: #a7bad0;
            font-weight: 600;
            letter-spacing: .02em;
        }

        .environment {
            display: inline-flex;
            align-items: center;
            gap: 7px;
        }

        .environment-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #35c778;
            box-shadow: 0 0 0 4px rgba(53, 199, 120, .1);
        }

        /* Lado do login */
        .login-side {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            background:
                radial-gradient(circle at 92% 8%, rgba(19, 197, 245, .075), transparent 25%),
                var(--page);
        }

        .login-topbar {
            min-height: 64px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            padding: 0 30px;
            border-bottom: 1px solid rgba(220, 228, 238, .82);
            background: rgba(255, 255, 255, .82);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .login-topbar span {
            color: var(--muted);
            font-size: 10.5px;
        }

        .support-link {
            min-height: 32px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 0 9px;
            border-radius: 7px;
            color: var(--peta-blue-dark);
            font-size: 10.5px;
            font-weight: 600;
        }

        .support-link:hover {
            background: var(--accent-soft);
            color: var(--accent);
        }

        .support-link svg { width: 13px; height: 13px; }

        .login-main {
            flex: 1;
            display: grid;
            place-items: center;
            padding: 42px 34px;
        }

        .login-container {
            position: relative;
            width: min(430px, 100%);
            padding: 36px 38px 32px;
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            background: rgba(255, 255, 255, .97);
            box-shadow: 0 22px 60px rgba(5, 19, 57, .08);
        }

        .login-container::before {
            content: "";
            position: absolute;
            top: 0;
            left: 28px;
            right: 28px;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--peta-cyan), var(--peta-blue), transparent);
            opacity: .9;
        }

        .login-logo {
            display: none;
            align-items: center;
            justify-content: center;
            width: 100%;
            margin: 0 0 28px;
            padding: 16px 18px;
            border-radius: 12px;
            background: linear-gradient(145deg, var(--peta-navy), var(--peta-navy-2));
        }

        .login-logo img {
            display: block;
            width: min(260px, 85%);
            max-height: 116px;
            height: auto;
            object-fit: contain;
        }

        .login-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            color: var(--peta-blue-dark);
            font-size: 9.5px;
            font-weight: 700;
            letter-spacing: .11em;
            text-transform: uppercase;
        }

        .login-eyebrow::before {
            content: "";
            width: 18px;
            height: 2px;
            border-radius: 2px;
            background: linear-gradient(90deg, var(--peta-cyan), var(--peta-blue));
        }

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

        .login-heading h1 {
            margin: 0;
            font-size: 27px;
            line-height: 1.2;
            font-weight: 600;
            letter-spacing: -.035em;
            color: var(--peta-navy);
        }

        .login-heading p {
            margin: 9px 0 0;
            color: var(--muted);
            font-size: 11.5px;
            line-height: 1.6;
        }

        /* Alertas */
        .alert {
            display: flex;
            align-items: flex-start;
            gap: 9px;
            margin-bottom: 18px;
            padding: 10px 11px;
            border: 1px solid;
            border-radius: 8px;
            font-size: 10.5px;
            line-height: 1.45;
        }

        .alert svg {
            flex: 0 0 auto;
            width: 15px;
            height: 15px;
            margin-top: 1px;
        }

        .alert-error {
            color: #8f2430;
            background: var(--danger-soft);
            border-color: #efc7cd;
        }

        .alert-success {
            color: #176c40;
            background: var(--success-soft);
            border-color: #c9e6d5;
        }

        /* Formulário */
        .field { margin-bottom: 17px; }

        .field-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 7px;
        }

        .field label {
            display: block;
            color: #34455c;
            font-size: 10.5px;
            font-weight: 650;
        }

        .field-link {
            color: var(--peta-blue-dark);
            font-size: 10px;
            font-weight: 600;
        }

        .field-link:hover { color: var(--accent); }

        .input-wrap { position: relative; }

        .input-wrap .leading-icon {
            position: absolute;
            top: 50%;
            left: 13px;
            width: 15px;
            height: 15px;
            transform: translateY(-50%);
            color: #71839a;
            pointer-events: none;
        }

        .input {
            width: 100%;
            height: 46px;
            padding: 0 13px 0 40px;
            border: 1px solid #cfd9e5;
            border-radius: 8px;
            outline: none;
            background: #fff;
            color: var(--text);
            font-size: 12px;
            transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
        }

        .input::placeholder { color: #a0adbb; }

        .input:hover { border-color: #b9c8d8; }

        .input:focus {
            border-color: var(--peta-blue);
            box-shadow: 0 0 0 3px rgba(9, 135, 241, .11);
            background: #fff;
        }

        .input-wrap:focus-within .leading-icon { color: var(--peta-blue); }

        .input.password-input { padding-right: 44px; }

        .password-toggle {
            position: absolute;
            top: 50%;
            right: 7px;
            width: 34px;
            height: 32px;
            display: grid;
            place-items: center;
            transform: translateY(-50%);
            border: 0;
            border-radius: 6px;
            background: transparent;
            color: #6f8093;
            cursor: pointer;
        }

        .password-toggle:hover {
            background: var(--accent-soft);
            color: var(--peta-blue-dark);
        }

        .password-toggle svg { width: 15px; height: 15px; }

        .form-options {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin: 3px 0 22px;
        }

        .checkbox {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #526176;
            font-size: 10.5px;
            cursor: pointer;
        }

        .checkbox input {
            width: 15px;
            height: 15px;
            margin: 0;
            accent-color: var(--peta-blue);
        }

        .login-button {
            width: 100%;
            height: 46px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            border: 1px solid var(--peta-blue-dark);
            border-radius: 8px;
            background: linear-gradient(90deg, var(--peta-blue-dark), var(--peta-blue));
            color: #fff;
            font-size: 11.5px;
            font-weight: 650;
            cursor: pointer;
            box-shadow: 0 8px 20px rgba(6, 56, 166, .14);
            transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
        }

        .login-button:hover {
            filter: brightness(1.035);
            box-shadow: 0 10px 24px rgba(6, 56, 166, .19);
            transform: translateY(-1px);
        }

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

        .login-button:focus-visible {
            outline: 3px solid rgba(19, 197, 245, .28);
            outline-offset: 2px;
        }

        .login-button:disabled {
            cursor: wait;
            opacity: .82;
            transform: none;
        }

        .login-button svg { width: 14px; height: 14px; }

        .security-note {
            display: flex;
            align-items: flex-start;
            gap: 9px;
            margin-top: 20px;
            padding: 12px 13px;
            border: 1px solid #e3edf7;
            border-radius: 8px;
            background: #f7fbff;
            color: #758398;
            font-size: 9.5px;
            line-height: 1.5;
        }

        .security-note svg {
            flex: 0 0 auto;
            width: 14px;
            height: 14px;
            margin-top: 1px;
            color: var(--peta-blue);
        }

        .login-footer {
            min-height: 58px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 12px 28px;
            color: #929eac;
            font-size: 9.5px;
            border-top: 1px solid rgba(220, 228, 238, .8);
            background: rgba(255, 255, 255, .5);
        }

        /* Loader de transição */
        .page-loader {
            position: fixed;
            inset: 0;
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
            background:
                radial-gradient(circle at center, rgba(9, 135, 241, .17), transparent 34%),
                rgba(4, 16, 47, .96);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity .2s ease, visibility .2s ease;
        }

        .page-loader.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .page-loader-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 16px;
            transform: translateY(8px) scale(.985);
            opacity: 0;
            transition: transform .25s ease, opacity .25s ease;
        }

        .page-loader.active .page-loader-content {
            transform: translateY(0) scale(1);
            opacity: 1;
        }

        .page-loader-visual {
            position: relative;
            width: min(310px, 78vw);
            height: 158px;
            display: grid;
            place-items: center;
        }

        .page-loader-image {
            position: relative;
            z-index: 3;
            display: block;
            width: min(265px, 72vw);
            max-height: 126px;
            height: auto;
            object-fit: contain;
            filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .22));
            animation: page-loader-float 1.55s ease-in-out infinite;
        }

        .page-loader-ping {
            position: absolute;
            z-index: 1;
            width: 84px;
            height: 84px;
            border: 1px solid rgba(19, 197, 245, .42);
            border-radius: 50%;
            opacity: 0;
            animation: page-loader-ping 1.8s ease-out infinite;
        }

        .page-loader-ping:nth-child(2) { animation-delay: .6s; }
        .page-loader-ping:nth-child(3) { animation-delay: 1.2s; }

        .page-loader-text {
            color: #d8f7ff;
            font-size: 10.5px;
            font-weight: 600;
            letter-spacing: .035em;
        }

        .page-loader-dots::after {
            content: "";
            display: inline-block;
            width: 14px;
            text-align: left;
            animation: page-loader-dots 1.2s steps(4, end) infinite;
        }

        body.login-loading { overflow: hidden; }

        @keyframes page-loader-float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-9px); }
        }

        @keyframes page-loader-ping {
            0% { transform: scale(.65); opacity: .5; }
            75%, 100% { transform: scale(2.25); opacity: 0; }
        }

        @keyframes page-loader-dots {
            0% { content: ""; }
            25% { content: "."; }
            50% { content: ".."; }
            75%, 100% { content: "..."; }
        }

        /* Responsividade */
        @media (max-width: 1080px) {
            .auth-shell {
                grid-template-columns: minmax(365px, 41%) minmax(480px, 59%);
            }

            .brand-side { padding-inline: 30px; }
            .brand-content h1 { font-size: clamp(30px, 3.3vw, 40px); }
            .feature span { display: none; }
            .brand-features { gap: 10px; }
        }

        @media (max-width: 800px) {
            .auth-shell { display: block; }
            .brand-side { display: none; }
            .login-side { min-height: 100vh; }
            .login-topbar { min-height: 54px; padding: 0 18px; }
            .login-topbar span { display: none; }
            .login-main { place-items: start center; padding: 34px 18px 30px; }
            .login-container { padding: 28px 26px 26px; }
            .login-logo { display: flex; }
            .login-footer { min-height: 50px; }
        }

        @media (max-width: 440px) {
            .login-main { padding: 24px 14px; }
            .login-container { padding: 24px 20px 22px; border-radius: 13px; }
            .login-logo { margin-bottom: 24px; padding: 14px; }
            .login-logo img { width: min(235px, 88%); }
            .login-heading h1 { font-size: 24px; }
            .form-options { margin-bottom: 20px; }
        }

        @media (prefers-reduced-motion: reduce) {
            .login-button,
            .page-loader,
            .page-loader-content,
            .page-loader-image,
            .page-loader-ping,
            .page-loader-dots::after {
                animation: none !important;
                transition: none !important;
            }
        }