/* ===================================================
   LegaSoft - Estilos Personalizados del Login
   =================================================== */

/* Layout Base y Fondo Degradado Adaptativo */
body.login-bg {
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    
    /* 1. Fondo Degradado de relleno para espacios excedentes */
    background: linear-gradient(135deg, #020b18 0%, #05152a 50%, #010712 100%);
    background-attachment: fixed;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Capa de Imagen de Fondo ajustada al Ancho con Alto Automático */
.top-content {
    opacity: 0;
    transition: opacity 1s ease;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    /* 2. Ajuste exacto de imagen: 100% ancho, centrada verticalmente, sin distorsión */
    background: url('../img/backgrounds/bg-login.jpg') no-repeat center center;
    background-size: 100% auto; /* Fuerza el 100% del ancho y auto en el alto */
}

.top-content.visible {
    opacity: 1 !important;
}

/* Espaciador Header Superior */
.login-header {
    padding: 20px;
    height: 60px;
}

/* Contenedor central del login */
.login-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-grow: 1;
}

/* Tarjeta principal (Efecto Glassmorphism) */
.glass-card {
    background: rgba(8, 21, 41, 0.75);
    border: 1px solid rgba(0, 195, 255, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 150, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    text-align: center;
}

/* Logo central LegaSoft */
.login-logo-box {
    margin-bottom: 25px;
}

.logo-legasoft {
    width: 90px;
    height: 90px;
    background: #ffffff;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.4);
    object-fit: contain;
}

.brand-title {
    font-size: 32px;
    font-weight: 700;
    margin: 15px 0 5px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.brand-title span {
    color: #0088ff;
}

.brand-subtitle {
    font-size: 13px;
    color: #2b99ff;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Formularios e Inputs */
.form-group-custom {
    text-align: left;
    margin-bottom: 20px;
}

.form-group-custom label {
    font-size: 13px;
    color: #a0c4e8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group-custom label i {
    color: #0088ff;
}

.input-wrapper {
    position: relative;
}

.input-custom {
    width: 100%;
    background: rgba(3, 16, 36, 0.8) !important;
    border: 1px solid rgba(0, 136, 255, 0.3) !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    outline: none;
    transition: all 0.3s ease;
}

.input-custom:focus {
    border-color: #0088ff !important;
    box-shadow: 0 0 10px rgba(0, 136, 255, 0.4) !important;
}

.input-custom::placeholder {
    color: #4a6c8e;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a6c8e;
    cursor: pointer;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #0088ff;
}

/* Opciones extras */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 25px;
}

.checkbox-custom {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #a0c4e8;
    cursor: pointer;
}

.checkbox-custom input {
    accent-color: #0088ff;
}

.forgot-link {
    color: #0088ff;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Botón Ingresar */
.btn-login-custom {
    width: 100%;
    background: linear-gradient(90deg, #0072ff 0%, #00c6ff 100%);
    border: none;
    padding: 14px;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-login-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 114, 255, 0.6);
}

/* Footer Inferior */
.login-footer {
    background: rgba(2, 11, 24, 0.85);
    border-top: 1px solid rgba(0, 136, 255, 0.15);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #7a9bbd;
}

.footer-items {
    display: flex;
    gap: 25px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-item i {
    color: #0088ff;
}