:root {
            --ink: #0f172a;
            --muted: #64748b;
            --muted-2: #475569;
            --border: #e6edf5;
            --brand: #5469d4;
            --brand-ink: #1b2b6b;
            --danger: #b42318;
            --danger-bg: #ffefef;
            --bg: #fff;
            --radius: 12px;

            /* espaçamentos */
            --s-1: 6px;
            --s-2: 10px;
            --s-3: 14px;
            --s-4: 18px;
            --s-5: 24px;
            --s-6: 28px;
            --s-7: 32px;
            --s-8: 40px;

            /* altura máx do card */
            --card-max: calc(100svh - 140px);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
        }

        html,
        body {
            height: 100%;
        }

        body {
            background: #fff;
            height: 100%;
            overflow: hidden;
            color: var(--ink);
            overscroll-behavior: none;
        }

        a {
            color: var(--brand);
            text-decoration: none;
        }

        a:hover {
            text-decoration: underline;
        }

        /* raiz (sem padding p/ o fundo cobrir 100%) */
        .login-root {
            display: grid;
            height: 100svh;
            width: 100%;
            place-items: center;
            position: relative;
            overflow: hidden;
            padding: 0;
        }

        .login-content {
            position: relative;
            z-index: 1;
            display: grid;
            justify-items: center;
            gap: var(--s-6);
            width: 100%;
            padding: var(--s-5);
        }

        /* Background 100% tela */
        .loginbackground {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }

        .loginbackground-gridContainer {
            display: grid;
            width: 200%;
            height: 200%;
            transform: translate(-25%, -25%) rotate(-12deg) skew(-12deg);
            grid-template-columns: [start] 1fr repeat(16, 86.6px) 1fr [end];
            grid-template-rows: [top] 1fr repeat(8, 64px) 1fr [bottom];
        }

        .box-divider--light-all-2 {
            box-shadow: inset 0 0 0 2px #e3e8ee;
        }

        .box-background--blue {
            background: #5469d4;
        }

        .box-background--white {
            background: #fff;
        }

        .box-background--blue800 {
            background: #212d63;
        }

        .box-background--gray100 {
            background: #e3e8ee;
        }

        .box-background--cyan200 {
            background: #7fd3ed;
        }

        .animationRightLeft {
            animation: rl 8s ease-in-out infinite;
        }

        .animationLeftRight {
            animation: lr 8s ease-in-out infinite;
        }

        .tans3s {
            animation-duration: 12s;
        }

        .tans4s {
            animation-duration: 16s;
        }

        @keyframes lr {
            0% {
                transform: translateX(0)
            }

            50% {
                transform: translateX(1000px)
            }

            100% {
                transform: translateX(0)
            }
        }

        @keyframes rl {
            0% {
                transform: translateX(0)
            }

            50% {
                transform: translateX(-1000px)
            }

            100% {
                transform: translateX(0)
            }
        }

        /* Marca */
        .brand {
            display: flex;
            align-items: center;
            gap: var(--s-3);
            text-decoration: none;
            color: var(--ink);
        }

        .brand img {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            object-fit: cover;
        }

        .brand span {
            font-weight: 800;
            letter-spacing: .2px;
            font-size: 18px;
        }

        /* Card com scroll interno */
        .formbg {
            width: 100%;
            max-width: 520px;
            background: var(--bg);
            border-radius: var(--radius);
            border: 1px solid var(--border);
            box-shadow: 0 12px 40px rgba(16, 24, 40, .10), 0 3px 10px rgba(16, 24, 40, .06);
            transition: height .28s ease;
            display: flex;
            flex-direction: column;
            max-height: var(--card-max);
            overflow: hidden;
        }

        .padding-48 {
            padding: var(--s-8);
            display: grid;
            row-gap: var(--s-6);
            overflow: auto;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
        }

        .title {
            font-size: 24px;
            font-weight: 800;
            line-height: 1.2;
            color: var(--ink);
        }

        .subtitle {
            font-size: 14px;
            color: var(--muted-2);
            margin-top: 4px;
        }

        .form-section {
            display: grid;
            row-gap: var(--s-4);
        }

        .section-head {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 2px;
        }

        .section-head .badge {
            font-size: 12px;
            font-weight: 700;
            color: var(--brand-ink);
            background: rgba(84, 105, 212, .10);
            padding: 4px 8px;
            border-radius: 999px;
            border: 1px dashed rgba(84, 105, 212, .35);
        }

        /* Campos */
        .field {
            display: grid;
            row-gap: 8px;
        }

        .field label {
            font-size: 13px;
            font-weight: 600;
            color: #0b1324;
        }

        .input-group {
            position: relative;
        }

        .input {
            width: 100%;
            padding: 14px 16px;
            border-radius: 10px;
            border: 1px solid rgba(15, 23, 42, .12);
            font-size: 15px;
            background: #fff;
            line-height: 1.45;
            transition: border-color .15s, box-shadow .15s, background-color .15s;
        }

        .input:focus {
            border-color: var(--brand);
            box-shadow: 0 0 0 4px rgba(84, 105, 212, .18);
            outline: 0;
        }

        .input::placeholder {
            color: #9aa4b2;
        }

        /* Estados erro */
        .input.is-invalid {
            border-color: var(--danger);
            box-shadow: 0 0 0 4px rgba(180, 35, 24, .12);
            background: var(--danger-bg);
        }

        .error-text {
            font-size: 12px;
            color: var(--danger);
            margin-top: 4px;
        }

        .hide {
            display: none !important;
        }

        .toggle-password {
            position: absolute;
            right: 10px;
            top: 0;
            bottom: 0;
            display: flex;
            align-items: center;
            cursor: pointer;
            border: 0;
            background: transparent;
            color: #667085;
            padding: 0 6px;
            border-radius: 8px;
        }

        .toggle-password:focus-visible {
            box-shadow: 0 0 0 3px rgba(84, 105, 212, .35);
            outline: 0;
        }

        .help-text {
            font-size: 12px;
            color: var(--muted);
        }

        .actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 2px;
        }

        .btn {
            width: 100%;
            padding: 14px 18px;
            background: var(--brand);
            color: #fff;
            border-radius: 10px;
            border: 0;
            font-weight: 800;
            letter-spacing: .2px;
            cursor: pointer;
            transition: .18s;
            font-size: 15px;
        }

        .btn:hover {
            filter: brightness(.95);
            transform: translateY(-1px);
        }

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

        .btn[disabled] {
            opacity: .7;
            cursor: not-allowed;
        }

        .inline-help {
            text-align: center;
            font-size: 13px;
            margin-top: 6px;
            color: var(--muted);
        }

        .btn-link {
            background: none;
            border: 0;
            color: var(--brand);
            font-weight: 800;
            cursor: pointer;
            padding: 0;
        }

        .divider {
            display: flex;
            align-items: center;
            gap: 12px;
            color: #94a3b8;
            font-size: 12px;
        }

        .divider:before,
        .divider:after {
            content: "";
            height: 1px;
            background: var(--border);
            flex: 1;
        }

        .view {
            display: none;
            opacity: 0;
            transform: translateY(8px);
            transition: .28s ease;
        }

        .view--active {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .footer {
            font-size: 13px;
            color: #64748b;
            text-align: center;
        }

        @media (max-width:520px) {
            .padding-48 {
                padding: 28px;
            }

            .title {
                font-size: 22px;
            }

            .brand span {
                font-size: 16px;
            }

            :root {
                --card-max: calc(100svh - 120px);
            }
        }