/* ---------- Transición de entrada / salida de la página ---------- */
        .login {
            opacity: 0;
            transform: translateY(10px);
            animation: entrada .5s ease forwards;
            transition: opacity .5s ease, transform .5s ease;
        }

        .login.saliendo {
            opacity: 0;
            transform: translateY(-10px);
        }

        @keyframes entrada {
            to { opacity: 1; transform: translateY(0); }
        }

        .campo-password {
            position: relative;
        }

        .campo-password input {
            width: 100%;
            padding-right: 44px;
            box-sizing: border-box;
        }

        .ver-password {
            position: absolute;
            top: 50%;
            right: 8px;
            transform: translateY(-50%);
            width: 32px;
            height: 32px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: 0;
            border-radius: 6px;
            cursor: pointer;
            color: #6b7280;
            transition: color .2s ease, background .2s ease;
        }

        .ver-password:hover,
        .ver-password:focus-visible {
            color: #111827;
            background: rgba(0, 0, 0, .06);
            outline: none;
        }

        .ver-password svg {
            width: 20px;
            height: 20px;
        }

        .ver-password .ojo-tachado {
            display: none;
        }

        .ver-password.activo .ojo-abierto {
            display: none;
        }

        .ver-password.activo .ojo-tachado {
            display: block;
        }

        /* ---------- Mensaje de registro exitoso ---------- */
        .exito {
            text-align: center;
            padding: 10px 0 4px;
            animation: entrada .5s ease both;
        }

        .exito .check {
            width: 76px;
            height: 76px;
            margin: 0 auto 16px;
        }

        .exito .check circle {
            fill: none;
            stroke: #16a34a;
            stroke-width: 4;
            stroke-dasharray: 189;
            stroke-dashoffset: 189;
            animation: trazo .7s ease forwards;
        }

        .exito .check path {
            fill: none;
            stroke: #16a34a;
            stroke-width: 5;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-dasharray: 50;
            stroke-dashoffset: 50;
            animation: trazo .4s .6s ease forwards;
        }

        @keyframes trazo {
            to { stroke-dashoffset: 0; }
        }

        .exito h2 {
            margin: 0 0 8px;
            color: #15803d;
        }

        .exito p {
            margin: 0 0 18px;
        }

        .barra-progreso {
            height: 4px;
            border-radius: 4px;
            background: rgba(0, 0, 0, .1);
            overflow: hidden;
        }

        .barra-progreso span {
            display: block;
            height: 100%;
            width: 0;
            background: #16a34a;
            animation: progreso 2.8s linear forwards;
        }

        @keyframes progreso {
            to { width: 100%; }
        }

        @media (prefers-reduced-motion: reduce) {
            .login,
            .exito,
            .exito .check circle,
            .exito .check path,
            .barra-progreso span {
                animation-duration: .01s;
                transition-duration: .01s;
            }
        }

/* ---------- Inicio de sesión bloqueado por intentos ---------- */
.bloqueado input, .bloqueado .ver-password { opacity: .6; pointer-events: none; }
.bt:disabled { opacity: .6; cursor: not-allowed; }
