*{
    font-size: 16px !important;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
        Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}

h2{
    font-size: 1.8rem;
}


html, body{
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
}


body{
    background: #0F69C4 !important;
}

*::-webkit-scrollbar {
    height: 3px;
    width: 6px;
}
*::-webkit-scrollbar-track {
    border-radius: 2px;
    background-color: #EBEBEB;
}

*::-webkit-scrollbar-track:hover {
    background-color: #C2C2C2;
}

*::-webkit-scrollbar-track:active {
    background-color: #C2C2C2;
}

*::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: #757575;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #A3A3A3;
}

*::-webkit-scrollbar-thumb:active {
    background-color: #A3A3A3;
}

.text-label{
    font-weight: bold;
    font-size: 1.1rem !important;
}

.rotate {
    animation: rotation 8s infinite linear;
}

.ui-blockui-content{
    background: white !important;
}

.text-shadow{
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.card-form{
    min-width: 500px;
    width: 50%;
    min-height: 100px;
    height: auto;
}

.btn-claveunica {
    background-color: #0F69C4 !important;
    color: #FFFFFF !important;

    width: 220px;
    min-height: 44px;

    border: none !important;
    border-radius: 4px;

    padding: 8px 16px !important;

    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;

    gap: 10px;

    font-family: "Roboto", sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    text-align: center !important;
    text-decoration: none !important;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;
}

/* Texto generado por PrimeFaces */
body .ui-button-text-icon-left.btn-claveunica .ui-button-text {
    padding: 0 !important;

    color: #FFFFFF !important;

    font-family: "Roboto", sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;

    line-height: 1 !important;
    text-decoration: none !important;
}

/* Icono ClaveÚnica */
.icon-claveunica {
    background-image: url('../resources/img/cu-blanco.svg') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;

    width: 24px !important;
    height: 24px !important;

    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;

    flex: 0 0 24px;
}

/* Hover */
.btn-claveunica:hover {
    background-color: #0B5AA8 !important;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.20);

    text-decoration: none !important;
}

/* Click */
.btn-claveunica:active {
    background-color: #094D91 !important;
    transform: translateY(1px);
}

/* Focus - importante para accesibilidad */
.btn-claveunica:focus {
    outline: none !important;

    box-shadow:
        0 0 0 3px rgba(15, 105, 196, 0.30),
        0 3px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Deshabilitado */
.btn-claveunica:disabled,
.btn-claveunica.ui-state-disabled {
    background-color: #AEB8C2 !important;
    color: #FFFFFF !important;
    cursor: not-allowed;
    box-shadow: none !important;
    opacity: 0.75;
}

/* Dialog responsive */
.dialog-responsive {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.dialog-small {
    min-width: 300px;
    width: 35% !important;
}

.dialog-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    max-height: 65vh;
}

/* Footer de botones */
.dialog-footer {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #ddd;
    background: #fff;
}

.dialog-footer .logo-full{
    width: 80px;
    height: auto;
}


@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}

@media (max-width: 768px) {
    .card-form{
        min-width: 0;
        width: 90%;
        min-height: 300px;
        height: auto;
    }
    
    .btn-claveunica {
        width: 100%;
        max-width: 320px;
        min-height: 46px;
        font-size: 15px !important;
    }

    body .ui-button-text-icon-left.btn-claveunica .ui-button-text {
        font-size: 15px !important;
    }
    
    .dialog-small {
    min-width: 300px;
    width: 95% !important;
}
}