/* Cambiar contraseña (changepassword.xhtml). Colores de tokens.css; los botones
   vrz-btn / vrz-btn-primary se definen aquí y le ganan al tema de PrimeFaces. */

.cc-pagina {
    display: flex;
    justify-content: center;
    padding: 24px 16px 40px;
}

.cc-caja {
    width: 100%;
    max-width: 460px;
    padding: 28px 28px 24px;
    background: var(--white, #fff);
    border: 1px solid var(--line, #dfe2e8);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(22, 35, 74, 0.06);
    color: var(--text, #2a3655);
    box-sizing: border-box;
}

/* ---- Encabezado ---- */
.cc-encabezado {
    text-align: center;
    margin-bottom: 20px;
}

.cc-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: var(--blue-soft, #e8f3fe);
    color: var(--blue-dark, #1769aa);
    font-size: 20px;
}

.cc-titulo {
    margin: 0;
    color: var(--ink, #16234a);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.cc-usuario {
    margin: 4px 0 0;
    color: var(--muted, #64708a);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.cc-aviso {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--blue-soft, #e8f3fe);
    color: var(--ink, #16234a);
    font-size: 14px;
    line-height: 1.45;
}

/* ---- Campos ---- */
.cc-campo {
    margin-bottom: 14px;
}

.cc-etiqueta {
    display: block;
    margin-bottom: 6px;
    color: var(--ink, #16234a);
    font-size: 14px;
    font-weight: 600;
}

.cc-entrada {
    position: relative;
}

.cc-caja .cc-entrada input.cc-input,
.cc-caja .cc-entrada .cc-input input {
    width: 100%;
    height: 44px;
    padding: 0 48px 0 12px;
    border: 1px solid var(--line, #dfe2e8);
    border-radius: 10px;
    background: var(--white, #fff);
    color: var(--ink, #16234a);
    font-size: 16px; /* 16px: iOS no hace zoom al enfocar */
    box-sizing: border-box;
}

.cc-caja .cc-entrada input.cc-input:focus,
.cc-caja .cc-entrada .cc-input input:focus {
    border-color: var(--blue, #2196f3);
    box-shadow: 0 0 0 3px var(--blue-soft, #e8f3fe);
    outline: none;
}

.cc-ojo {
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted, #64708a);
    cursor: pointer;
}

.cc-ojo:hover {
    color: var(--blue-dark, #1769aa);
    background: var(--blue-soft, #e8f3fe);
}

/* ---- Reglas ---- */
.cc-reglas-titulo {
    margin: 18px 0 6px;
    color: var(--ink, #16234a);
    font-size: 14px;
    font-weight: 600;
}

.cc-reglas {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.cc-reglas li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 26px;
    color: var(--muted, #64708a);
    font-size: 14px;
}

.cc-marca {
    flex: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--line, #dfe2e8);
    border-radius: 999px;
    box-sizing: border-box;
}

.cc-reglas li.cc-ok {
    color: var(--ink, #16234a);
}

.cc-reglas li.cc-ok .cc-marca {
    border-color: var(--success, #16a34a);
    background: var(--success, #16a34a) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.cc-reglas li.cc-mal .cc-marca {
    border-color: var(--danger, #ef4444);
}

.cc-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cc-nota {
    display: flex;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--muted, #64708a);
    font-size: 13px;
    line-height: 1.45;
}

.cc-nota .fa {
    margin-top: 2px;
}

/* ---- Éxito ---- */
.cc-exito {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid rgba(22, 163, 74, 0.35);
    border-radius: 12px;
    background: rgba(22, 163, 74, 0.08);
    color: var(--ink, #16234a);
}

.cc-exito .fa {
    color: var(--success, #16a34a);
    font-size: 22px;
}

.cc-exito-titulo {
    margin: 0;
    font-weight: 600;
}

.cc-exito-texto {
    margin: 4px 0 0;
    color: var(--text, #2a3655);
    font-size: 14px;
    line-height: 1.45;
}

.cc-mensajes {
    margin: 0 0 14px;
}

/* ---- Botones ---- */
.cc-acciones {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.cc-caja .vrz-btn,
.cc-caja .vrz-btn.ui-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line, #dfe2e8);
    border-radius: 10px;
    background: var(--white, #fff);
    color: var(--ink, #16234a);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    box-sizing: border-box;
}

.cc-caja .vrz-btn:hover,
.cc-caja .vrz-btn.ui-button.ui-state-hover {
    background: var(--soft, #f7f7f8);
    color: var(--ink, #16234a);
}

.cc-caja .vrz-btn.vrz-btn-primary,
.cc-caja .vrz-btn.vrz-btn-primary.ui-button {
    border-color: var(--blue, #2196f3);
    background: var(--blue, #2196f3);
    color: var(--white, #fff);
}

.cc-caja .vrz-btn.vrz-btn-primary:hover,
.cc-caja .vrz-btn.vrz-btn-primary.ui-button.ui-state-hover {
    border-color: var(--blue-dark, #1769aa);
    background: var(--blue-dark, #1769aa);
    color: var(--white, #fff);
}

.cc-caja .vrz-btn.ui-button .ui-button-text {
    padding: 0;
}

/* Foco visible con teclado en todo lo que se puede tocar. */
.cc-caja .vrz-btn:focus-visible,
.cc-caja .vrz-btn.ui-button.ui-state-focus,
.cc-ojo:focus-visible,
.cc-exito:focus-visible {
    outline: 3px solid var(--blue, #2196f3);
    outline-offset: 2px;
}

/* ---- Celular ---- */
@media (max-width: 480px) {
    .cc-pagina {
        padding: 12px 0 24px;
    }

    .cc-caja {
        padding: 22px 16px 18px;
        border-radius: 12px;
    }

    .cc-titulo {
        font-size: 20px;
    }

    /* El botón principal arriba y ancho completo, al alcance del pulgar. */
    .cc-acciones {
        flex-direction: column-reverse;
    }

    .cc-caja .vrz-btn,
    .cc-caja .vrz-btn.ui-button {
        width: 100%;
    }
}
