/*-------------------------------------------------------------------------*/
/* Auth - DISEÑO QUEL'DOREI SPLIT (SQUARE)
/*-------------------------------------------------------------------------*/

/* Contenedor principal centrado */
.page-subbody.mt-0 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
}

/* CONTAINER SPLIT (Banner Izq + Form Der) */
.login-container {
    display: flex;
    min-height: 550px;
    background: rgba(10, 15, 0, 0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(179, 255, 0, 0.25);
    width: 100%;
    backdrop-filter: blur(15px);
    animation: floatIn 0.6s ease-out;
}

/* BANNER LATERAL IZQUIERDO */
.login-banner {
    width: 40%;
    position: relative;
    background-image: url('../../../assets/images/slider/sliderCharacter_mythic.webp'), linear-gradient(135deg, rgba(51, 77, 0, 0.6), rgba(76, 102, 0, 0.5));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    color: white;
}

.login-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(10, 15, 0, 0.8));
    z-index: 1;
}

.login-banner-content {
    position: relative;
    z-index: 2;
}

.login-banner h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    color: #fff;
    text-transform: uppercase;
}

.login-banner p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Botón en banner */
.btn-outline-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-outline-glow:hover {
    background: white;
    color: #1a2600;
    box-shadow: 0 0 25px rgba(179, 255, 0, 0.4);
    transform: translateY(-2px);
}

/* CONTENIDO DEL FORMULARIO (DERECHA) */
.login-content {
    width: 60%;
    padding: 50px;
    background: rgba(10, 20, 5, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header del Form */
.login-header {
    text-align: left;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.login-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, #b3ff00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.login-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin: 0;
}

/* FORM FIELDS (Copiado y adaptado de register.css para consistencia) */
.form-group.form-icon-container {
    position: relative;
    margin-bottom: 25px;
}

/* ICONO DE CAJA IZQUIERDA (Usuario, Candado, Shield) */
.form-group.form-icon-container i.left-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 3;
    transition: all 0.3s ease;
}

/* INPUT STYLES */
.form-group.form-icon-container input {
    width: 100%;
    height: 50px;
    padding: 0 45px 0 65px !important;
    /* Left 65px (box), Right 45px (eye/status) */
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(179, 255, 0, 0.15);
    border-radius: 8px;
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group.form-icon-container input:focus {
    background: rgba(0, 0, 0, 0.6);
    border-color: #b3ff00;
    box-shadow: 0 0 20px rgba(179, 255, 0, 0.15);
    outline: none;
}

/* Highlight del icono cuando focus */
.form-group.form-icon-container input:focus+i.left-icon {
    color: #fff;
    background: rgba(179, 255, 0, 0.2);
    border-right-color: rgba(179, 255, 0, 0.5);
}

/* TOGGLE PASSWORD (OJO) - FIXED & CLICKABLE */
.password-toggle {
    position: absolute;
    right: 15px;
    /* Pegado a la derecha dentro del input */
    top: 0;
    height: 100%;
    /* Ocupa toda la altura */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    /* Forzar cursor de mano */
    z-index: 10;
    /* Encima del input */
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
    padding: 0 5px;
    /* Area clickeable un poco mas ancha */
}

.password-toggle:hover {
    color: #fff;
    text-shadow: 0 0 5px #b3ff00;
}

.password-toggle i {
    font-size: 1.1rem;
    pointer-events: none;
    /* El click lo recibe el span padre */
}

/* Captcha Field específico */
.captcha-field {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.refresh-captcha {
    transition: transform 0.3s ease;
}

.refresh-captcha:hover {
    transform: rotate(180deg);
    color: #b3ff00 !important;
}

/* Checkbox & Links */
.form-check-input.remember-check {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.form-check-input.remember-check:checked {
    background-color: #b3ff00;
    border-color: #b3ff00;
}

.form-check-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
}

.card-link {
    color: #b3ff00;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.card-link:hover {
    color: #fff;
    text-shadow: 0 0 5px #b3ff00;
}

/* Botón Submit */
.nice_button {
    background: linear-gradient(135deg, #4c6600 0%, #334d00 100%);
    border: none;
    padding: 0;
    width: 100%;
    height: 55px;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(179, 255, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nice_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(179, 255, 0, 0.5);
    filter: brightness(1.1);
}

/* Responsive */
@media (max-width: 991px) {
    .login-container {
        flex-direction: column;
    }

    .login-banner {
        width: 100%;
        min-height: 200px;
        padding: 30px 20px;
    }

    .login-content {
        width: 100%;
        padding: 30px 20px;
    }

    .password-toggle {
        right: 10px;
    }
}

/* Animaciones */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}