:root{
            --azul: #0d6efd;
            --azul-oscuro: #0b5ed7;
            --violeta: #6f42c1;
            --texto: #1f2937;
            --muted: #6b7280;
            --borde: #e5e7eb;
            --bg-input: #fbfcff;
        }

        *{ box-sizing: border-box; }

        html, body{ min-height: 100%; }

        body{
            margin: 0;
            font-family: Arial, Helvetica, sans-serif;
            color: var(--texto);
            background:
                radial-gradient(circle at top left, rgba(13,110,253,.16), transparent 24%),
                radial-gradient(circle at bottom right, rgba(111,66,193,.18), transparent 22%),
                linear-gradient(135deg, #eef4ff 0%, #f8fbff 48%, #f3f6ff 100%);
            overflow-x: hidden;
            opacity: 1 !important;
            filter: none !important;
        }

        .modal-backdrop,
        .offcanvas-backdrop{
            display: none !important;
            opacity: 0 !important;
            visibility: hidden !important;
        }

        .shape{
            position: fixed;
            border-radius: 50%;
            filter: blur(8px);
            opacity: .45;
            z-index: 0;
            pointer-events: none;
        }

        .shape-1{
            width: 260px;
            height: 260px;
            top: -90px;
            left: -90px;
            background: rgba(13,110,253,.20);
        }

        .shape-2{
            width: 300px;
            height: 300px;
            right: -110px;
            bottom: -110px;
            background: rgba(111,66,193,.18);
        }

        .page-wrap{
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 30px 14px;
            position: relative;
            z-index: 2;
        }

        .login-frame{
            width: 100%;
            max-width: 980px;
        }

        .login-card{
            border: 0;
            border-radius: 34px;
            overflow: hidden;
            background: rgba(255,255,255,.98);
            box-shadow: 0 28px 70px rgba(17,24,39,.12);
        }

        .login-top{
            position: relative;
            padding: 34px 34px 26px;
            background: linear-gradient(135deg, var(--azul) 0%, var(--azul-oscuro) 52%, var(--violeta) 100%);
            color: #fff;
        }

        .login-top::before{
            content: "";
            position: absolute;
            width: 220px;
            height: 220px;
            top: -90px;
            right: -60px;
            border-radius: 50%;
            background: rgba(255,255,255,.10);
        }

        .login-top::after{
            content: "";
            position: absolute;
            width: 170px;
            height: 170px;
            bottom: -70px;
            left: -50px;
            border-radius: 50%;
            background: rgba(255,255,255,.08);
        }

        .top-content{
            position: relative;
            z-index: 2;
        }

        .brand-pill{
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255,255,255,.14);
            border: 1px solid rgba(255,255,255,.18);
            border-radius: 999px;
            padding: .48rem .95rem;
            font-size: .84rem;
            font-weight: 700;
        }

        .top-grid{
            display: grid;
            grid-template-columns: 96px 1fr;
            gap: 20px;
            align-items: center;
            margin-top: 20px;
        }

        .logo-box{
            width: 96px;
            height: 96px;
            border-radius: 26px;
            background: rgba(255,255,255,.14);
            border: 1px solid rgba(255,255,255,.18);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
        }

        .logo-box img{
            width: 80px;
            height: 80px;
            object-fit: contain;
            filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
        }

        .logo-box i{
            font-size: 2.2rem;
            color: #fff;
        }

        .top-title{
            font-size: 2rem;
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 8px;
        }

        .top-text{
            color: rgba(255,255,255,.88);
            font-size: 1rem;
            margin-bottom: 0;
            max-width: 580px;
        }

        .login-body{
            padding: 34px;
            position: relative;
            z-index: 2;
        }

        .content-grid{
            display: grid;
            grid-template-columns: 1.1fr .9fr;
            gap: 28px;
            align-items: start;
        }

        .welcome-panel{
            background: linear-gradient(135deg, rgba(13,110,253,.06), rgba(111,66,193,.07));
            border: 1px solid rgba(13,110,253,.10);
            border-radius: 26px;
            padding: 24px;
            height: 100%;
        }

        .welcome-badge{
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #fff;
            border: 1px solid rgba(13,110,253,.10);
            color: var(--azul);
            border-radius: 999px;
            padding: .42rem .85rem;
            font-size: .82rem;
            font-weight: 700;
            margin-bottom: 16px;
        }

        .welcome-title{
            font-size: 1.55rem;
            font-weight: 800;
            line-height: 1.15;
            margin-bottom: 12px;
        }

        .welcome-text{
            color: var(--muted);
            font-size: .97rem;
            margin-bottom: 22px;
        }

        .mini-cards{
            display: grid;
            gap: 12px;
        }

        .mini-card{
            background: #fff;
            border: 1px solid #edf0f4;
            border-radius: 18px;
            padding: 14px 15px;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            box-shadow: 0 8px 20px rgba(15,23,42,.04);
        }

        .mini-icon{
            width: 40px;
            height: 40px;
            min-width: 40px;
            border-radius: 14px;
            background: linear-gradient(135deg, var(--azul), var(--violeta));
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: .98rem;
        }

        .mini-title{
            font-size: .94rem;
            font-weight: 800;
            margin-bottom: 2px;
        }

        .mini-text{
            font-size: .86rem;
            color: var(--muted);
            line-height: 1.35;
        }

        .welcome-logo{
            margin-top: 22px;
            text-align: center;
        }

        .welcome-logo img{
            max-width: 100%;
            width: 320px;
            height: auto;
            object-fit: contain;
            filter: drop-shadow(0 10px 22px rgba(13,110,253,.12));
        }

        .form-panel{
            background: #fff;
            border: 1px solid #edf0f4;
            border-radius: 26px;
            padding: 24px;
            box-shadow: 0 10px 24px rgba(15,23,42,.05);
        }

        .form-header{
            text-align: center;
            margin-bottom: 20px;
        }

        .form-header-badge{
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(13,110,253,.08);
            color: var(--azul);
            border: 1px solid rgba(13,110,253,.12);
            border-radius: 999px;
            padding: .42rem .9rem;
            font-size: .82rem;
            font-weight: 700;
            margin-bottom: 12px;
        }

        .form-title{
            font-size: 1.7rem;
            font-weight: 800;
            margin-bottom: 5px;
        }

        .form-subtitle{
            font-size: .95rem;
            color: var(--muted);
            margin-bottom: 0;
        }

        .alert{
            border: 0;
            border-radius: 18px;
            box-shadow: 0 10px 24px rgba(0,0,0,.05);
            padding: .95rem 1rem;
        }

        .error-login-box{
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .error-login-box i{
            font-size: 1.6rem;
            color: #dc3545;
            flex-shrink: 0;
        }

        .error-login-text{
            color: #dc3545;
            font-size: 1.10rem;
            font-weight: 700;
            line-height: 1.2;
        }

        .form-label{
            font-weight: 700;
            color: #374151;
            margin-bottom: .55rem;
        }

        .input-wrap{
            position: relative;
        }

        .input-wrap .form-control{
            height: 56px;
            border-radius: 18px;
            border: 1px solid var(--borde);
            background: var(--bg-input);
            padding-left: 48px;
            padding-right: 48px;
            font-size: .98rem;
            transition: all .2s ease;
        }

        .input-wrap .form-control:focus{
            border-color: #86b7fe;
            box-shadow: 0 0 0 .20rem rgba(13,110,253,.13);
            background: #fff;
        }

        .input-icon{
            position: absolute;
            top: 50%;
            left: 17px;
            transform: translateY(-50%);
            color: #6b7280;
            z-index: 3;
            font-size: 1rem;
        }

        .toggle-password{
            position: absolute;
            top: 50%;
            right: 12px;
            transform: translateY(-50%);
            z-index: 3;
            border: 0;
            background: transparent;
            color: #6b7280;
            width: 34px;
            height: 34px;
            border-radius: 10px;
            transition: all .18s ease;
        }

        .toggle-password:hover{
            background: rgba(13,110,253,.08);
            color: var(--azul);
        }

        .options-row{
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-top: 10px;
            margin-bottom: 12px;
        }

        .form-check-label{
            color: #4b5563;
            font-size: .93rem;
        }

        .help-link{
            color: var(--azul);
            font-weight: 700;
            text-decoration: none;
            font-size: .92rem;
        }

        .help-link:hover{
            color: var(--azul-oscuro);
            text-decoration: underline;
        }

        .forgot-link-wrap{
            text-align: right;
            margin-top: 0;
            margin-bottom: 22px;
        }

        .forgot-link{
            color: var(--azul);
            font-weight: 700;
            text-decoration: none;
            font-size: .92rem;
        }

        .forgot-link:hover{
            color: var(--azul-oscuro);
            text-decoration: underline;
        }

        .btn-login{
            height: 56px;
            border-radius: 18px;
            border: 0;
            font-weight: 800;
            font-size: 1rem;
            background: linear-gradient(135deg, var(--azul) 0%, var(--azul-oscuro) 52%, var(--violeta) 100%);
            box-shadow: 0 14px 28px rgba(13,110,253,.20);
            transition: transform .18s ease, box-shadow .18s ease;
        }

        .btn-login:hover{
            transform: translateY(-1px);
            box-shadow: 0 18px 34px rgba(13,110,253,.26);
            cursor: pointer;
        }

        .divider{
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 20px 0 18px;
            color: #9ca3af;
            font-size: .9rem;
            font-weight: 700;
        }

        .divider::before,
        .divider::after{
            content: "";
            flex: 1;
            height: 1px;
            background: #e5e7eb;
        }

        .btn-register{
            height: 54px;
            border-radius: 18px;
            font-weight: 800;
            font-size: .98rem;
        }

        .footer-note{
            text-align: center;
            color: #6b7280;
            font-size: .9rem;
            margin-top: 20px;
        }

        .footer-note strong{
            color: #374151;
        }

        @media (max-width: 991.98px){
            .content-grid{
                grid-template-columns: 1fr;
            }

            .login-frame{
                max-width: 700px;
            }

            .top-grid{
                grid-template-columns: 1fr;
                text-align: center;
            }

            .logo-box{
                margin: 0 auto;
            }

            .welcome-logo img{
                width: 280px;
            }
        }

        @media (max-width: 767.98px){
            .page-wrap{
                padding: 16px 10px;
            }

            .login-top{
                padding: 24px 18px 20px;
            }

            .login-body{
                padding: 18px;
            }

            .form-panel,
            .welcome-panel{
                padding: 18px;
            }

            .top-title{
                font-size: 1.55rem;
            }

            .form-title{
                font-size: 1.45rem;
            }

            .welcome-logo img{
                width: 230px;
            }

            .forgot-link-wrap{
                text-align: center;
            }

            .error-login-text{
                font-size: 1.4rem;
            }
        }