
/* .icono-der {
    margin-left: 0.4rem;
    display: flex;
    align-items: center;
}

.icono-der .check {
    color: #28a745;
    animation: pulso 0.4s ease;
}

.icono-der .error {
    color: #dc3545;
    animation: sacudir 0.4s ease;
}

@keyframes pulso {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

@keyframes sacudir {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-4px);
    }
    75% {
        transform: translateX(4px);
    }
}
 */

















body {
    background-image: url("fondoLogin.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* `fixed` produce parpadeo/jitter en móviles: scroll es más estable */
    background-attachment: scroll;
    background-color: #a4cce7;
}

@media (min-width: 992px) {
    body {
        background-attachment: fixed;
    }
}

/* La tarjeta flota centrada verticalmente en cualquier alto de pantalla */
.container {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container > .row {
    margin-top: 0;
}

/* Overlay semi-transparente opcional */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(168, 218, 220, 0.25);
    z-index: 1;
    pointer-events: none;
}

/* EFECTOS DE LA TARJETA  */
.cardStyle {
    z-index: 10;
    background: rgba(255, 255, 255, 0.555) !important;
    box-shadow: var(--shadow-2, 0 2px 4px rgba(15, 42, 78, 0.07),
        0 6px 16px rgba(15, 42, 78, 0.1)) !important;
    border-radius: var(--radius-lg, 18px) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cardStyle:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cardStyle {
    animation: fadeInUp 0.2s ease-out;
}

.logo {
    width: clamp(96px, 22%, 150px);
    height: auto;
}
/* EFECTOS DEL LOGO */
.logo-icon {
    width: 41px;
    height: 41px;
    background: linear-gradient(135deg, #387adf 0%, #1e60c3 100%);
    box-shadow: 140px -10px 55px rgba(8, 101, 178, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 30px rgba(8, 82, 178, 0.5);
}

/* Animación de pulso continuo */
@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    50% {
        background: linear-gradient(135deg, #387adf 0%, #1c5bb9 100%);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        transform: scale(1.05);
    }
}

.logo-icon {
    animation: pulse 2s ease-in-out infinite;
}

/* Texto del nombre con gradiente */
.clinic-name {
    background: linear-gradient(135deg, #387adf 0%, #1e60c3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* EFECTOS DE LOS INPUTS */

/* Contenedor del input con posición relativa */
.input-icon-wrapper {
    position: relative;
}

/* Icono flotante dentro del input */
.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 5;
    transition: color 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Input con padding para el icono */
.styleInputs {
    padding-left: 40px !important;
    padding-right: 48px !important;  /* despeja el toggle de 44px */
    border-width: 1.9px;
    border-radius: 16.7px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    border-color: #387adf  !important;
    background-color: #ffffff98;
    box-shadow: 0 8px 10px rgba(8, 101, 178, 0.15) !important;
}

.styleInputs:focus {
    background-color: #ffffffe5;
    border-width: 2px;
    box-shadow: 0 0 0 0.2rem rgba(8, 101, 178, 0.15) !important;
    transform: scale(1.01);
}

/* Icono cambia de color cuando hay focus */
.input-icon-wrapper:focus-within .input-icon {
    color: #387adf !important;
    transform: translateY(-50%) scale(1.1);
}

.labelForm {
    transition: color 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.input-icon-wrapper:focus-within ~ .labelForm,
.styleInputs:focus ~ .labelForm {
    color: #387adf !important;
}

/* Botón de mostrar/ocultar contraseña: target táctil ≥ 44px */
.password-toggle {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
}

.password-toggle:focus-visible {
    box-shadow: var(--ring, 0 0 0 3px rgba(56, 122, 223, 0.35));
}

.password-toggle:hover {
    color: #387adf !important;
    filter: drop-shadow(0 0 5px rgba(8, 101, 178, 0.3));
    transform: translateY(-50%) scale(1.1);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* EFECTOS DEL BOTON */
.btnPrimaryEditado {
    background: linear-gradient(135deg, #387adf 0%, #1c74f7 100%) !important;
    border: none !important;
    box-shadow: 0 3px 12px rgba(8, 60, 178, 0.3);
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 620;
    letter-spacing: 2px;
    text-transform: uppercase;
    width: 100%;            /* nunca más del 100%: 108.5% desbordaba la pantalla */
}

/* reCAPTCHA centrado sin hacks inline */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin-inline: auto;
    transform-origin: center;
    max-width: 100%;
}

@media (max-width: 380px) {
    .g-recaptcha > div {
        transform: scale(0.85);
        transform-origin: center;
    }
}

.btnPrimaryEditado:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(8, 60, 178, 0.5) !important;
}

/* Click del botón */
.btnPrimaryEditado:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(8, 60, 178, 0.3) !important;
}

/* Onda al hacer click */
.btnPrimaryEditado::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btnPrimaryEditado:active::after {
    width: 300px;
    height: 300px;
}

/* ENLACES DEL FOOTER */
.footer-links a {
    color: #2f75df;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0066ff;
}

@media (max-width: 576px) {
    .logo-icon {
        width: 45px;
        height: 45px;
    }

    .logo-icon i {
        font-size: 24px;
    }

    .cardStyle {
        margin: 10px !important;
    }
}

.text-primary-custom {
    color: #387adf !important;
}

.text-secondary-custom {
    color: #64748b !important;
}

/* Botón INGRESAR: cómodo en móvil, sin encogerse ni desbordar */
@media (max-width: 576px) {
    .container .d-grid.col-7 {
        width: 100% !important;
        max-width: 340px;
        margin-inline: auto;
    }
}