        :root {
            --cnh-blue: #0a2e5d;
            --cnh-blue-light: #1e4e8c;
            --cnh-yellow: #f7c600;
            --cnh-yellow-light: #ffe066;
            --cnh-green: #80CD29;
            --cnh-green-light: #9ADB4D;
            --cnh-bg: #f5f8fa;
            --cnh-bg-glass: rgba(255, 255, 255, 0.85);
            --cnh-border: #e3e8ee;
            --cnh-error: #ef4444;
            --cnh-success: #22c55e;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            font-family: 'Segoe UI', system-ui, sans-serif;
            background: var(--cnh-bg);
        }

        .top-band {
            height: 6px;
            background: linear-gradient(90deg,
                    var(--cnh-blue) 0%,
                    var(--cnh-blue-light) 40%,
                    var(--cnh-yellow) 80%,
                    var(--cnh-yellow-light) 100%);
            width: 100%;
        }

        .page-wrapper {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem 1rem;
            position: relative;
            overflow: hidden;
            background:
                radial-gradient(ellipse at 10% 15%, rgba(10, 46, 93, 0.10) 0%, transparent 50%),
                radial-gradient(ellipse at 90% 85%, rgba(247, 198, 0, 0.10) 0%, transparent 50%),
                var(--cnh-bg);
        }

        .page-wrapper::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image: radial-gradient(circle, rgba(10, 46, 93, 0.04) 1px, transparent 1px);
            background-size: 28px 28px;
            z-index: 0;
            pointer-events: none;
        }

        .bg-orb {
            position: fixed;
            border-radius: 50%;
            filter: blur(90px);
            pointer-events: none;
            z-index: 0;
        }

        .orb-blue {
            width: 380px;
            height: 380px;
            background: rgba(10, 46, 93, 0.13);
            top: -100px;
            left: -100px;
            animation: orbFloat 16s ease-in-out infinite;
        }

        .orb-yellow {
            width: 280px;
            height: 280px;
            background: rgba(247, 198, 0, 0.13);
            bottom: -60px;
            right: -60px;
            animation: orbFloat 12s ease-in-out infinite reverse;
        }

        @keyframes orbFloat {

            0%,
            100% {
                transform: translate(0, 0) scale(1);
            }

            50% {
                transform: translate(18px, 14px) scale(1.04);
            }
        }

        .login-card {
            width: 100%;
            max-width: 448px;
            background: var(--cnh-bg-glass);
            border-radius: 18px;
            box-shadow:
                0 0 0 1px var(--cnh-border),
                0 20px 60px rgba(10, 46, 93, 0.13),
                0 4px 16px rgba(10, 46, 93, 0.08);
            overflow: hidden;
            position: relative;
            z-index: 1;
            animation: cardEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        @keyframes cardEnter {
            from {
                opacity: 0;
                transform: translateY(22px) scale(0.98);
            }

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

        .progress-bar-top {
            height: 3px;
            width: 0%;
            background: linear-gradient(90deg, var(--cnh-blue-light), var(--cnh-yellow));
            transition: width 0.4s ease;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 10;
        }

        .card-header-custom {
            background: linear-gradient(175deg, var(--cnh-blue) 0%, var(--cnh-blue-light) 65%, #0a2e5d 100%);
            padding: 2rem 2rem 1.75rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .card-header-custom::before {
            content: '';
            position: absolute;
            top: -40px;
            right: -40px;
            width: 140px;
            height: 140px;
            border-radius: 50%;
            border: 24px solid rgba(247, 198, 0, 0.07);
            pointer-events: none;
        }

        .card-header-custom::after {
            content: '';
            position: absolute;
            bottom: -30px;
            left: -30px;
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 16px solid rgba(255, 255, 255, 0.04);
            pointer-events: none;
        }

        .gold-separator {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg,
                    transparent 0%,
                    var(--cnh-blue-light) 8%,
                    var(--cnh-yellow) 35%,
                    var(--cnh-yellow-light) 62%,
                    transparent 100%);
        }

        .cnh-logo {
            width: 240px;
            min-height: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            position: relative;
            z-index: 1;
            animation: logoPulse 4s ease-in-out infinite;
            background: #fff;
            border-radius: 18px;
            box-shadow: 0 2px 18px 0 rgba(10, 46, 93, 0.10);
            padding: 0.65rem 1rem;
        }

        @keyframes logoPulse {

            0%,
            100% {
                filter: drop-shadow(0 4px 16px rgba(10, 46, 93, 0.25));
            }

            50% {
                filter: drop-shadow(0 6px 22px rgba(10, 46, 93, 0.35));
            }
        }

        .cnh-logo img {
            width: 100%;
            max-width: 200px;
            height: auto;
            max-height: 96px;
            object-fit: contain;
            border-radius: 0;
        }

        .card-header-custom h1 {
            color: #fff;
            font-size: 1.55rem;
            font-weight: 800;
            letter-spacing: 4px;
            margin-bottom: 0.25rem;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
            position: relative;
            z-index: 1;
        }

        .header-gold-line {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin: 0.3rem 0 0.4rem;
            position: relative;
            z-index: 1;
        }

        .header-gold-line span {
            height: 1.5px;
            width: 28px;
            background: linear-gradient(90deg, transparent, var(--cnh-yellow-light));
        }

        .header-gold-line span:last-child {
            background: linear-gradient(90deg, var(--cnh-yellow-light), transparent);
        }

        .header-gold-line small {
            color: var(--cnh-yellow-light);
            font-size: 0.6rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            font-weight: 700;
        }

        .header-slogan {
            color: rgba(255, 255, 255, 0.85);
            font-size: 0.68rem;
            letter-spacing: 0.5px;
            font-weight: 500;
            line-height: 1.6;
            max-width: 300px;
            margin: 0 auto 0.5rem;
            position: relative;
            z-index: 1;
        }

        .security-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            background: rgba(255, 255, 255, 0.07);
            border: 1px solid var(--cnh-yellow-light);
            border-radius: 20px;
            padding: 0.22rem 0.75rem;
            font-size: 0.6rem;
            font-weight: 600;
            color: var(--cnh-yellow-light);
            letter-spacing: 0.5px;
            position: relative;
            z-index: 1;
            margin-top: 0.4rem;
        }

        .security-badge .dot-secure {
            width: 5px;
            height: 5px;
            background: #4ade80;
            border-radius: 50%;
            animation: blinkDot 2s ease-in-out infinite;
        }

        @keyframes blinkDot {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.3;
            }
        }

        .card-body-custom {
            padding: 1.85rem 2rem;
        }

        .section-title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--cnh-blue-light);
            margin-bottom: 0.2rem;
        }

        .section-line {
            height: 3px;
            width: 38px;
            background: linear-gradient(90deg, var(--cnh-blue), var(--cnh-yellow));
            border-radius: 2px;
            margin-bottom: 1.4rem;
        }

        .form-label {
            font-size: 0.79rem;
            font-weight: 600;
            color: var(--cnh-blue-light);
            margin-bottom: 0.35rem;
        }

        .input-wrap {
            position: relative;
        }

        .form-control-cdc {
            border: 1.5px solid var(--cnh-border);
            border-radius: 10px;
            padding: 0.68rem 0.9rem 0.68rem 2.6rem;
            font-size: 0.875rem;
            width: 100%;
            outline: none;
            transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
            background: #fafdff;
            color: #1e293b;
        }

        .form-control-cdc::placeholder {
            color: #b6c2d1;
        }

        .form-control-cdc:focus {
            border-color: var(--cnh-yellow);
            box-shadow: 0 0 0 3px rgba(247, 198, 0, 0.09);
            background: #fff;
        }

        .form-control-cdc.is-invalid {
            border-color: var(--cnh-error);
            background: #fff5f5;
        }

        .form-control-cdc.is-invalid:focus {
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
        }

        .input-wrap .icon {
            position: absolute;
            left: 0.85rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--cnh-blue-light);
            font-size: 0.92rem;
            opacity: 0.5;
            transition: opacity 0.2s;
            pointer-events: none;
        }

        .input-wrap:focus-within .icon {
            opacity: 0.9;
        }

        .input-wrap .toggle-pass {
            position: absolute;
            right: 0.85rem;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            padding: 0.15rem;
            color: #94a3b8;
            font-size: 0.9rem;
            cursor: pointer;
            transition: color 0.2s;
            border-radius: 4px;
            line-height: 1;
        }

        .input-wrap .toggle-pass:hover {
            color: var(--cnh-yellow);
        }

        .field-error {
            font-size: 0.73rem;
            color: var(--cnh-error);
            margin-top: 0.28rem;
            display: none;
            align-items: center;
            gap: 0.25rem;
        }

        .strength-bar {
            height: 4px;
            border-radius: 2px;
            background: #e2e8f0;
            margin-top: 0.45rem;
            overflow: hidden;
            display: none;
        }

        .strength-fill {
            height: 100%;
            border-radius: 2px;
            transition: width 0.35s ease, background 0.35s ease;
            width: 0%;
        }

        .strength-txt {
            font-size: 0.69rem;
            margin-top: 0.22rem;
            display: none;
            font-weight: 600;
        }

        .alert-cdc {
            background: rgba(239, 68, 68, 0.07);
            border: 1px solid rgba(239, 68, 68, 0.22);
            border-radius: 10px;
            padding: 0.72rem 1rem;
            font-size: 0.81rem;
            color: var(--cnh-error);
            align-items: center;
            gap: 0.5rem;
            display: none;
            animation: fadeSlideIn 0.25s ease;
        }

        .alert-cdc.alert-success-cdc {
            background: rgba(34, 197, 94, 0.07);
            border-color: rgba(34, 197, 94, 0.22);
            color: var(--cnh-success);
        }

        @keyframes fadeSlideIn {
            from {
                opacity: 0;
                transform: translateY(-5px);
            }

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

        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            20% {
                transform: translateX(-6px);
            }

            40% {
                transform: translateX(6px);
            }

            60% {
                transform: translateX(-4px);
            }

            80% {
                transform: translateX(4px);
            }
        }

        .shake {
            animation: shake 0.38s ease;
        }

        .btn-login {
            width: 100%;
            padding: 0.82rem;
            background: linear-gradient(135deg, var(--cnh-blue) 0%, var(--cnh-blue-light) 50%, var(--cnh-yellow) 100%);
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 0.9rem;
            font-weight: 700;
            letter-spacing: 0.4px;
            cursor: pointer;
            transition: background 0.3s, box-shadow 0.25s, transform 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            position: relative;
            overflow: hidden;
        }

        .btn-login::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, var(--cnh-green) 0%, var(--cnh-green-light) 100%);
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 0;
        }

        .btn-login::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 60%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
            transform: skewX(-20deg);
            transition: left 0.5s ease;
            z-index: 1;
        }

        .btn-login:hover::before {
            opacity: 1;
        }

        .btn-login:hover::after {
            left: 160%;
        }

        .btn-login:hover:not(:disabled) {
            background: linear-gradient(135deg, var(--cnh-green) 0%, var(--cnh-green-light) 100%);
            box-shadow: 0 8px 28px rgba(128, 205, 41, 0.35);
            transform: translateY(-1px);
        }

        .btn-login span,
        .btn-login i,
        .btn-login .spinner-btn {
            position: relative;
            z-index: 2;
        }

        .btn-login:active:not(:disabled) {
            transform: translateY(0);
            box-shadow: none;
        }

        .btn-login:disabled {
            opacity: 0.72;
            cursor: not-allowed;
        }

        .spinner-btn {
            display: none;
            width: 17px;
            height: 17px;
            border: 2px solid rgba(255, 255, 255, 0.35);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }

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

        .link-cnh {
            color: var(--cnh-yellow);
            font-weight: 600;
            text-decoration: none;
        }

        .link-cnh:hover {
            color: var(--cnh-blue-light);
            text-decoration: underline;
        }

        .card-footer-custom {
            background: linear-gradient(135deg, #f0f4fa, #f7fafd);
            border-top: 3px solid transparent;
            border-image: linear-gradient(90deg, transparent, var(--cnh-blue-light), var(--cnh-yellow), var(--cnh-yellow-light), transparent) 1;
            padding: 1rem 1.5rem 1.3rem;
            text-align: center;
            font-size: 0.77rem;
            color: #6b7a8c;
        }

        .module-badges {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 0.75rem;
            flex-wrap: wrap;
        }

        .module-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.28rem 0.55rem;
            border-radius: 999px;
            background: #fff;
            border: 1px solid #e3e8ee;
            font-size: 0.6rem;
            color: #1e4e8c;
            font-weight: 600;
        }

        .module-badge.active {
            color: var(--cnh-yellow);
            border-color: var(--cnh-yellow);
        }

        .page-footer {
            text-align: center;
            padding: 1.25rem;
            font-size: 0.71rem;
            color: #6b7a8c;
            position: relative;
            z-index: 1;
        }

        .page-footer a {
            color: #6b7a8c;
            text-decoration: none;
        }

        .page-footer a:hover {
            color: var(--cnh-yellow);
        }