.body-login { 
    font-family: 'Poppins', sans-serif;
     background: linear-gradient(
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    ), url("../IMG/fondo-kaiu2.jpeg") no-repeat center center;
    background-size: cover; /* 🔥 vuelve a cover */
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

/* CONTENEDOR */
.login-container {
    width: 100%;
    max-width: 360px;
}

.login-card {
    background: rgba(255, 255, 255, 0.15); /* 🔥 casi transparente */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 35px 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    text-align: center;
    color: #fff;
}

/* 🔥 EFECTO HOVER BRUTAL */
.login-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* ANIMACIÓN */
@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LOGO */
.logo {
    width: 150px; /* más grande */
    margin-bottom: 15px;
    transition: 0.3s ease;
}

/* efecto sutil */
.logo:hover {
    transform: scale(1.05);
}

/* TEXTO */
.subtitulo {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 25px;
}

/* INPUTS */
.input, .input-recuperar {
    width: 90%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.25); /* 🔥 transparente */
    backdrop-filter: blur(5px);
    color: #000000;
    font-size: 14px;
    transition: 0.3s;
}

/* PLACEHOLDER */
.input::placeholder,
.input-recuperar::placeholder {
    color: rgba(0,0,0,0.5);
}

/* FOCUS */
.input:focus,
.input-recuperar:focus {
    color: #000000;
    background: rgba(255,255,255,0.6);
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.3);
    outline: none;
}

/* BOTÓN */
.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #8B5E3C, #a97450);
    color: white;
    font-weight: bold;
    font-size: 15px;
    transition: 0.3s;
}

.btn-login:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* RECUPERACIÓN */
.recuperacion {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: 0.3s;
    margin-top: 18px;
}

.recuperacion a {
    font-size: 13px;
    color: #000000;
    text-decoration: none;
}

.recuperacion a:hover {
    color: #fff;
    transform: translateX(-3px);
    text-decoration: underline;
}

#mensajeError {
    font-size: 14px;
    border-radius: 12px;
    animation: shake 0.4s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}



/* CONTENEDOR PASSWORD */
.input-group {
    border-radius: 12px;
    overflow: hidden;
}

/* BOTÓN OJITO */
.input-group .btn {
    border-radius: 0 12px 12px 0;
    border: 2px solid #ddd;
    border-left: none;
    background: #f8f8f8;
    transition: 0.3s;
}

.input-group .btn:hover {
    background: #6f4e37;
    color: white;
}

/* CONTENEDOR DE LOS BOTONES (IMPORTANTE) */
.botones-codigo {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
}

/* BOTONES */
.btn-botones {
    flex: 1; /* 🔥 hace que ambos ocupen el mismo espacio */
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #8B5E3C;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

/* HOVER */
.btn-botones:hover {
    background: #6f4e37;
}

/* BOTÓN REENVIAR DIFERENTE */
.btn-botones[type="submit"][name="reenviar_codigo"] {
    background: transparent;
    color: #8B5E3C;
    border: 2px solid #8B5E3C;
}

.btn-botones[type="submit"][name="reenviar_codigo"]:hover {
    background: #8B5E3C;
    color: white;
}

/* CUANDO ESTÁ DESHABILITADO */
.btn-botones:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* CONTENEDOR */
.input-group{
    position: relative;
    margin-top: -8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 14px;
    background: #f8f8f8;
}

/* INPUT CONTRASEÑA */
.input-group .form-control {
    width: 100%;
    padding: 14px 50px 14px 15px;
    border-radius: 14px;
    border: none;
    background: transparent;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* HOVER */
.input-group:hover {
    border-color: #8B5E3C;
    background: #fff;
}

/* FOCUS */
.input-group:focus-within {
    border-color: #8B5E3C;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.2);
}

/* BOTÓN DEL OJO */
.input-group button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.toggle-eye img{
    width: 22px;
    opacity: .7;
    transition: .2s;
}

.toggle-eye img:hover{
    opacity: 1;
    transform: scale(1.1);
}

/* FONDO DEL POPUP */
.swal2-popup {
    border-radius: 20px !important;
    background: rgba(30, 30, 30, 0.85) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    color: #fff !important;
    text-align: center !important;
}

/* TITULO */
.swal2-title {
    font-weight: 600;
    font-size: 20px;
    color: #fff !important;
    margin-top: 10px !important;
}

/* TEXTO */
.swal2-html-container {
    color: rgba(255,255,255,0.8) !important;
}

/* BOTÓN CONFIRMAR */
.swal2-confirm {
    background: linear-gradient(135deg, #00c6ff, #0072ff) !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 8px 18px !important;
    transition: 0.3s;
}

.swal2-confirm:hover {
    transform: scale(1.08);
}

/* BOTÓN CANCELAR */
.swal2-cancel {
    background: rgba(255,255,255,0.2) !important;
    border-radius: 20px !important;
    color: #fff !important;
}

/* BOTÓN DENY */
.swal2-deny {
    background: linear-gradient(135deg, #f7971e, #ffd200) !important;
    border-radius: 20px !important;
    color: #000 !important;
}

/* RESET COMPLETO ICONO */
.swal2-icon {
    margin: 1.5em auto 0.6em auto !important;
    border-width: 3px !important;
    position: relative !important;
    left: -2px;
}

/* RESTAURAR SUCCESS */
.swal2-icon.swal2-success {
    border-color: #a5dc86 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    position: absolute !important;
    top: -4px !important;
    left: -4px !important;
    width: 100% !important;
    height: 100% !important;
}

/* RESTAURAR CHECK */
.swal2-icon.swal2-success [class^='swal2-success-line'] {
    position: absolute !important;
}

/* EVITAR DEFORMACIONES */
.swal2-icon * {
    box-sizing: content-box !important;
}

/* ANIMACIÓN */
.swal2-show {
    animation: swalZoom 0.3s ease;
}

@keyframes swalZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* CENTRAR CHECK PERFECTAMENTE */
.swal2-icon.swal2-success {
    display: grid !important;
    place-items: center !important;
}

/* AJUSTE FINO */
.swal2-icon.swal2-success .swal2-success-circular-line-left,
.swal2-icon.swal2-success .swal2-success-circular-line-right,
.swal2-icon.swal2-success .swal2-success-fix {
    display: none !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    margin: auto !important;
}