.body-login {
    font-family: 'Poppins', sans-serif;
    background:
        linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
        url("../IMG/fondo-kaiu2.jpeg") no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.body-login::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(139,94,60,0.18), transparent 30%);
    pointer-events: none;
}

/* CONTENEDOR */
.login-container {
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 1;
}

/* TARJETA */
.login-card {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 36px 26px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.35);
    text-align: center;
    color: #fff;
    animation: aparecer .6s ease;
    transition: transform .28s ease, box-shadow .28s ease;
}

.login-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(0,0,0,0.42);
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* LOGO */
.logo {
    width: 165px;
    margin-bottom: 12px;
    transition: transform .3s ease;
}

.logo:hover {
    transform: scale(1.04);
}

/* SUBTITULO */
.subtitulo {
    font-size: 14px;
    color: rgba(255,255,255,0.82);
    margin-bottom: 24px;
    letter-spacing: .4px;
}

/* INPUTS */
.input,
.input-recuperar {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 15px;
    background: rgba(255,255,255,0.24);
    backdrop-filter: blur(5px);
    color: #111827;
    font-size: 14px;
    transition: .25s ease;
    outline: none;
}

.input::placeholder,
.input-recuperar::placeholder {
    color: rgba(0,0,0,0.45);
}

.input:focus,
.input-recuperar:focus {
    color: #000000;
    background: rgba(255,255,255,0.72);
    border-color: rgba(255,255,255,0.45);
    box-shadow: 0 0 0 4px rgba(139, 94, 60, 0.18);
}

/* PASSWORD */
.password-wrap {
    position: relative;
    margin-bottom: 15px;
}

.password-wrap .input {
    margin-bottom: 0;
    padding-right: 52px;
}

.toggle-password-btn {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    opacity: .72;
    transition: opacity .2s ease, transform .2s ease;
}

.toggle-password-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}

.toggle-password-btn img {
    width: 24px;
    height: 24px;
    display: block;
}

/* BOTÓN LOGIN */
.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #8B5E3C, #b17a52);
    color: white;
    font-weight: 700;
    font-size: 15px;
    transition: .28s ease;
    box-shadow: 0 12px 25px rgba(0,0,0,0.22);
}

.btn-login:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0,0,0,0.30);
}

.btn-login:disabled {
    opacity: .75;
    cursor: not-allowed;
}

/* RECUPERACIÓN */
.recuperacion {
    font-size: 13px;
    margin-top: 18px;
}

.recuperacion a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: .25s ease;
}

.recuperacion a:hover {
    color: #ffe6cf;
    text-decoration: underline;
}

/* ALERTA */
#mensajeError {
    font-size: 14px;
    border-radius: 14px;
    animation: shake 0.4s;
    border: none;
    margin-bottom: 16px;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* MENSAJE BLOQUEO */
.bloqueo-titulo,
.bloqueo-subtexto,
.mensaje-ok-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bloqueo-titulo img,
.bloqueo-subtexto img,
.mensaje-ok-wrap img {
    width: 28px;
    height: 28px;
}

.bloqueo-titulo {
    font-weight: 700;
    color: #dc3545;
}

.bloqueo-tiempo {
    font-size: 30px;
    font-weight: 800;
    margin-top: 6px;
    margin-bottom: 6px;
    color: #111827;
}

.bloqueo-subtexto {
    font-size: 12px;
    color: #6b7280;
}

.mensaje-ok-wrap {
    color: #0f5132;
    font-weight: 700;
}

/* BOTONES CÓDIGO */
.botones-codigo {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
}

.btn-botones {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #8B5E3C;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: .25s ease;
}

.btn-botones:hover {
    background: #6f4e37;
}

.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;
}

.btn-botones:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* INPUT GROUP LEGACY */
.input-group {
    position: relative;
    margin-top: -8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 14px;
    background: #f8f8f8;
}

.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;
}

.input-group:hover {
    border-color: #8B5E3C;
    background: #fff;
}

.input-group:focus-within {
    border-color: #8B5E3C;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.2);
}

.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);
}

/* SWEETALERT */
.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;
}

.swal2-title {
    font-weight: 600;
    font-size: 20px;
    color: #fff !important;
    margin-top: 10px !important;
}

.swal2-html-container {
    color: rgba(255,255,255,0.8) !important;
}

.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);
}

.swal2-cancel {
    background: rgba(255,255,255,0.2) !important;
    border-radius: 20px !important;
    color: #fff !important;
}

.swal2-deny {
    background: linear-gradient(135deg, #f7971e, #ffd200) !important;
    border-radius: 20px !important;
    color: #000 !important;
}

.swal2-icon {
    margin: 1.5em auto 0.6em auto !important;
    border-width: 3px !important;
    position: relative !important;
    left: -2px;
}

.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;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    position: absolute !important;
}

.swal2-icon * {
    box-sizing: content-box !important;
}

.swal2-show {
    animation: swalZoom 0.3s ease;
}

@keyframes swalZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.swal2-icon.swal2-success {
    display: grid !important;
    place-items: center !important;
}

.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;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .login-card {
        padding: 28px 18px;
        border-radius: 20px;
    }

    .logo {
        width: 135px;
    }

    .subtitulo {
        font-size: 13px;
    }

    .input,
    .input-recuperar {
        font-size: 13px;
        padding: 13px 14px;
    }

    .btn-login {
        font-size: 14px;
    }
}