.custom-form-card {
    background: #3d4753;
    border-radius: 18px;
    box-shadow: 0 4px 28px rgba(34,40,49,0.09), 0 1.5px 8px rgba(150,160,170,0.13);
    padding: 2.7rem 2.2rem;
    color: #fff;
    border: none;
    margin-top: 36px;
}
.custom-form-card h4 {
    color: #fff;
    font-weight: 700;
    letter-spacing: .5px;
}
.custom-form-card .form-label {
    color: #f3f6f8;
    font-size: 1rem;
    font-weight: 500;
}

.custom-form-card .form-control {
    background: #566478 !important;
    border: 1px solid #4d5a6c !important;
    color: #fff !important;
    border-radius: 8px;
    font-size: 1.09rem;
    padding: .72rem .9rem;
}

.custom-form-card select.form-select {
    
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #566478 !important;
    border: 1px solid #4d5a6c !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 1.09rem !important;
    padding: .72rem 2.5rem .72rem .9rem !important; /* Espacio extra para la flecha */
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8l3 3 3-3' stroke='%23FFFFFF' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.2rem center !important;
    background-size: 1.2em !important;
    cursor: pointer !important;
}

.custom-form-card .form-control:focus {
    box-shadow: 0 0 0 2px #b3dbf7;
    border-color: #81b6df !important;
    background: #5d6a7d !important;
    color: #fff;
}
.custom-form-card .btn-blanco-coral {
    background: #ff6d6d;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 0.78rem 0;
    font-size: 1.11rem;
    font-weight: 600;
    transition: background .18s;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(140,50,50,.13);
    letter-spacing: .2px;
}
.custom-form-card .btn-blanco-coral:hover,
.custom-form-card .btn-blanco-coral:focus {
    background: #ff5252;
    color: #fff;
}
.custom-form-card a,
.custom-form-card a:visited {
    color: #FF6D6D; /* Coral en estado base */
    text-decoration: underline;
    transition: color 0.2s;
}

.custom-form-card a:hover,
.custom-form-card a:focus {
    color: #fff;
    text-decoration: underline;
}
.custom-form-card ::-webkit-input-placeholder { color: #e3e8ee; }
.custom-form-card ::-moz-placeholder { color: #e3e8ee; }
.custom-form-card :-ms-input-placeholder { color: #e3e8ee; }
.custom-form-card ::placeholder { color: #e3e8ee; }



.password-reqs li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    color: #fff;
    font-weight: 500;
    font-size: 0.90rem;    /* Antes: 1.07rem */
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.password-reqs li.invalid {
    color: #FF6D6D;
}
.password-reqs li.valid {
    color: #72DEAF;
}
.password-reqs li::before {
    font-size: 1em;        /* Antes: 1.18em */
    width: 1.1em;          /* Antes: 1.3em */
    display: inline-block;
    text-align: center;
}
.password-reqs li.invalid::before {
    content: "✗";
    color: #FF6D6D;
}
.password-reqs li.valid::before {
    content: "✓";
    color: #72DEAF;
}

/* Barra de fortaleza moderna */
.progress {
    background: #38414F;
    border-radius: 5px;
    height: 15px;
    overflow: hidden;
    margin-bottom: 4px;
}
.progress-bar {
    border-radius: 10px;
    transition: width 0.25s;
}
.progress-bar.debil {
    background-color: #FF6D6D;
}
.progress-bar.media {
    background-color: #FFCB74;
}
.progress-bar.fuerte {
    background-color: #72C27F;
}
#textoFortaleza {
    color: #E4EAF2;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    display: block;
}

#mensajeCoincidencia {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 6px;
    min-height: 1.5em;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

/* Estado válido */
#mensajeCoincidencia.valido {
    color: #72DEAF; /* Verde igual que tus reglas válidas */
}

#mensajeCoincidencia.valido::before {
    content: "✓";
    color: #72DEAF;
    font-size: 1.2em;
    margin-right: 2px;
}

/* Estado inválido */
#mensajeCoincidencia.invalido {
    color: #FF6D6D; /* Rojo igual que tus reglas inválidas */
}

#mensajeCoincidencia.invalido::before {
    content: "✗";
    color: #FF6D6D;
    font-size: 1.2em;
    margin-right: 2px;
}

